SDK:
- make sure important files node closes AndroidManifest.xml git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9266 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
72c6689656
commit
0e315d57da
@ -5,6 +5,7 @@
|
||||
package com.jme3.gde.android;
|
||||
|
||||
import com.jme3.gde.core.importantfiles.ImportantFiles;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import org.netbeans.api.project.Project;
|
||||
@ -34,10 +35,16 @@ public class AndroidImportantFiles implements ImportantFiles {
|
||||
in = manifest.getInputStream();
|
||||
Document configuration = XMLUtil.parse(new InputSource(in), false, false, null, null);
|
||||
mainActivity = "mobile/src/" + configuration.getDocumentElement().getAttribute("package").replaceAll("\\.", "/") + "/MainActivity.java";
|
||||
in.close();
|
||||
} catch (Exception ex) {
|
||||
Exceptions.printStackTrace(ex);
|
||||
} finally {
|
||||
try {
|
||||
if (in != null) {
|
||||
in.close();
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
Exceptions.printStackTrace(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
ArrayList<Node> list = new ArrayList<Node>();
|
||||
@ -73,5 +80,4 @@ public class AndroidImportantFiles implements ImportantFiles {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user