allow passing full path of app info file to generator

This commit is contained in:
Dmitry Jemerov
2013-03-29 14:52:03 +01:00
parent ff2619187e
commit d2e756edbe
2 changed files with 8 additions and 1 deletions
Binary file not shown.
@@ -47,7 +47,14 @@ public class LauncherGeneratorMain {
}
String appInfoFileName = args[1];
InputStream appInfoStream = LauncherGeneratorMain.class.getClassLoader().getResourceAsStream(appInfoFileName);
InputStream appInfoStream;
try {
appInfoStream = new FileInputStream(appInfoFileName);
}
catch (FileNotFoundException e) {
appInfoStream = LauncherGeneratorMain.class.getClassLoader().getResourceAsStream(appInfoFileName);
}
if (appInfoStream == null) {
System.err.println("Application info file " + appInfoFileName + " not found");
System.exit(3);