<targetname="fail-nicely"description="Tells the user to use build.xml, not this subbuildfile.">
<failmessage="Do not use this file directly; use build.xml file instead, which then uses this file."/>
</target>
<targetname="this-init">
<!-- Create the time stamp -->
<tstamp/>
<mkdirdir="${dist}/java-web-start"/>
</target>
<targetname="package-for-java-web-start"
depends="this-init"
description="Builds the Java Web Start version of ${my.app} given that you have compiled it (and from scratch, since our compilation procedure doesn't konw about dependencies)">
<!-- First, you must give the passwords so that we can sign the JARs. -->
<failmessage="Use 'ant -Dkeystore.password=psst' to sign a Java Web Start WAR file."
unless="keystore.password"/>
<failmessage="Use 'ant -Ddgkey.password=psst' to sign a Java Web Start WAR file."
unless="dgkey.password"/>
<!-- Use the Venus Application Publisher's (Vamp's) Ant task to
create a .war file. If you use Tomcat or the like to
distribute, then the WAR is all you need. If not, you don't
need the full WAR file. You in fact need only the JAR file
inside it. There is a ${my.app}.jnlp file inside it, too,
but that file uses macros like $$name and $$codebase, which