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:
parent
34e52d78bf
commit
5a992da480
16
build.xml
16
build.xml
@ -66,4 +66,20 @@
|
|||||||
nbproject/build-impl.xml file.
|
nbproject/build-impl.xml file.
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
<target name="release" depends="compile,jar">
|
||||||
|
<mkdir dir="release" />
|
||||||
|
<delete file="${dist.dir}/README.TXT" />
|
||||||
|
<unjar dest="${build.classes.dir}">
|
||||||
|
<fileset dir="lib">
|
||||||
|
<include name="*.jar" />
|
||||||
|
</fileset>
|
||||||
|
</unjar>
|
||||||
|
<jar destfile="release/TimeStamper_v${application.version}.jar" basedir="${build.classes.dir}">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Main-Class" value="jdbernard.timestamper.TimeStamperApp" />
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
<tar destfile="release/TimeStamper_v${application.version}.tar.gz" basedir="${dist.dir}" compression="gzip" />
|
||||||
|
|
||||||
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
@ -2,6 +2,7 @@ application.desc=A simple java desktop application based on Swing Application Fr
|
|||||||
application.homepage=http://appframework.dev.java.net
|
application.homepage=http://appframework.dev.java.net
|
||||||
application.title=Basic Application Example
|
application.title=Basic Application Example
|
||||||
application.vendor=Sun Microsystems Inc.
|
application.vendor=Sun Microsystems Inc.
|
||||||
|
application.version=1.0
|
||||||
build.classes.dir=${build.dir}/classes
|
build.classes.dir=${build.dir}/classes
|
||||||
build.classes.excludes=**/*.java,**/*.form
|
build.classes.excludes=**/*.java,**/*.form
|
||||||
# This directory is removed when the project is cleaned:
|
# This directory is removed when the project is cleaned:
|
||||||
|
BIN
release/TimeStamper_v1.0.jar
Normal file
BIN
release/TimeStamper_v1.0.jar
Normal file
Binary file not shown.
BIN
release/TimeStamper_v1.0.tar.gz
Normal file
BIN
release/TimeStamper_v1.0.tar.gz
Normal file
Binary file not shown.
@ -64,6 +64,24 @@ implements Application.ExitListener {
|
|||||||
loadTimeline(config.getProperty("lastUsedTimelineFilename"));
|
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.
|
* At startup create and show the main frame of the application.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user