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:
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user