System.out.println(Messages.getString("Geco.UnrecognizedOptionWarning") + arg); //$NON-NLS-1$
}
}
private static GecoStageLaunch initStageLauncher(String startDir) {
GecoStageLaunch stageLaunch = new GecoStageLaunch();
if( startDir!=null ) {
if( !GecoResources.exists(startDir) ) {
System.out.println(Messages.getString("Geco.NoPathWarning") + startDir); //$NON-NLS-1$
System.exit(0);
} else {
stageLaunch.loadFromFileSystem(startDir);
}
} else {
try {
File historyFile = new File(GecoResources.getGecoSupportDirectory() + GecoResources.sep + "history");
historyFile.createNewFile();
BufferedReader reader = new BufferedReader(new FileReader(historyFile));
String line;
do {
line = reader.readLine();
if( StageBuilder.directoryHasData(line) ){
history.addLast(new GecoStageLaunch().loadFromFileSystem(line));
}
} while( line != null );
} catch (FileNotFoundException e) {
System.out.println(e);
} catch (IOException e) {