Added ability to specify timeline file on command line

Added release build target to build stand-alone jar and tar.gz files

committer: Jonathan Bernard <jdbernard@jdbernard-desktop.(none)>
This commit is contained in:
Jonathan Bernard
2008-08-30 23:35:42 -05:00
parent 34e52d78bf
commit 5a992da480
5 changed files with 35 additions and 0 deletions

View File

@ -64,6 +64,24 @@ implements Application.ExitListener {
loadTimeline(config.getProperty("lastUsedTimelineFilename"));
}
/**
*
*/
@Override protected void initialize(String[] args) {
if (args.length > 0) {
File inFile = new File(args[0]);
if (!inFile.exists())
try { inFile.createNewFile(); }
catch (IOException ioe) {
log.warning("No file '" + args[0] + " exists and an error"
+ " occurred trying to create it.");
}
currentTimelineFile = args[0];
loadTimeline(currentTimelineFile);
}
}
/**
* At startup create and show the main frame of the application.
*/