if (j > -1) {
ext = filename.substring(j+1);
}
- if (startupFileExtensions.contains(ext.toLowerCase())) {
+ if (locatorFileExtension.equals(ext.toLowerCase())) {
+ // this file extension should have been dealt with in Getdown class
+ } else {
_appargs.add(0, "-open");
- } else if (locatorFileExtension.equals(ext.toLowerCase())) {
- // deal with this when first encountered in Getdown!
}
}
protected static final String ENV_VAR_PREFIX = "%ENV.";
protected static final Pattern ENV_VAR_PATTERN = Pattern.compile("%ENV\\.(.*?)%");
- public static final List<String> startupFileExtensions = Arrays.asList(new String[] { "jvp" });
public static final String locatorFileExtension = "jvl";
}
if (j > -1) {
ext = filename.substring(j+1);
}
- // jvp files etc
- boolean addedStartupFile = false; // only add one startup file
- if (_app.startupFileExtensions.contains(ext.toLowerCase()) && ! addedStartupFile) {
- File f = new File(filename);
- if (f.exists()) {
- _app.addStartupFile(f);
- addedStartupFile = true;
- }
- }
// jvl files
if (_app.locatorFileExtension.equals(ext.toLowerCase())) {
// Do something special with this here
}
}
}
+ } else {
+ // jvp files etc
+ boolean addedStartupFile = false; // only add one startup file
+ if (! addedStartupFile) {
+ File f = new File(filename);
+ if (f.exists()) {
+ _app.addStartupFile(f);
+ addedStartupFile = true;
+ }
+ }
}
}
}
@Override
public void startupPerformed(String parameters)
{
- GetdownApp.setStartupFilesParameterString(parameters);
+ setStartupFilesParameterString(parameters);
}
});
} catch (Exception e)