mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
allow passing full path of app info file to generator
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user