At Edward's request, the codebase for Java Web Start releases may now
be specified on the command line via 'ant -Djnlp.codebase="http://foo.bar/baz"'. This means that dist/ no longer contains .jnlp files; they are created by Ant instead.
This commit is contained in:
parent
010d8cb972
commit
d211930e68
6 changed files with 202 additions and 107 deletions
200
build.xml
200
build.xml
|
@ -54,6 +54,9 @@
|
||||||
<property name="publicjavadocs" location="${docs}/public-javadocs"/>
|
<property name="publicjavadocs" location="${docs}/public-javadocs"/>
|
||||||
<property name="privatejavadocs" location="${docs}/private-javadocs"/>
|
<property name="privatejavadocs" location="${docs}/private-javadocs"/>
|
||||||
|
|
||||||
|
<property name="jnlp.codebase"
|
||||||
|
value="http://iris.lib.virginia.edu/tibet/tools"/>
|
||||||
|
|
||||||
<property name="key.alias" value="David Germano"/>
|
<property name="key.alias" value="David Germano"/>
|
||||||
<property name="keystore" value="file:///f:/thdl/Jskad/thawte/keystore"/>
|
<property name="keystore" value="file:///f:/thdl/Jskad/thawte/keystore"/>
|
||||||
|
|
||||||
|
@ -538,14 +541,17 @@
|
||||||
|
|
||||||
|
|
||||||
<target name="clean"
|
<target name="clean"
|
||||||
description="cleans up a few things, but not all (not the Javadocs, e.g.)" >
|
description="cleans up a few things, but not all (not the Javadocs or the JWS releases, e.g.)" >
|
||||||
<!-- Delete the ${bin} and ${dist} directory trees -->
|
<!-- Delete the ${bin} and ${dist} directory trees -->
|
||||||
<delete dir="${bin}"/>
|
<delete dir="${bin}"/>
|
||||||
<delete dir="${dist}/docs"/>
|
<delete dir="${dist}/docs"/>
|
||||||
<delete dir="${dist}/java-web-start"/>
|
|
||||||
<delete dir="${dist}/lib"/>
|
<delete dir="${dist}/lib"/>
|
||||||
<delete dir="${dist}/releases"/>
|
<delete dir="${dist}/releases"/>
|
||||||
<delete dir="${dist}/source"/>
|
<delete dir="${dist}/source"/>
|
||||||
|
<delete file="${dist}/DictionarySearchAppletAndJavaWebStart.jnlp"/>
|
||||||
|
<delete file="${dist}/Savant.jnlp"/>
|
||||||
|
<delete file="${dist}/QuillDriver.jnlp"/>
|
||||||
|
<delete file="${dist}/Jskad.jnlp"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
@ -557,6 +563,8 @@
|
||||||
<!-- Delete the API docs -->
|
<!-- Delete the API docs -->
|
||||||
<delete dir="${publicjavadocs}"/>
|
<delete dir="${publicjavadocs}"/>
|
||||||
<delete dir="${privatejavadocs}"/>
|
<delete dir="${privatejavadocs}"/>
|
||||||
|
|
||||||
|
<delete dir="${dist}/java-web-start"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
@ -821,6 +829,15 @@
|
||||||
<param name="javacdashg" value="no"/>
|
<param name="javacdashg" value="no"/>
|
||||||
</antcall>
|
</antcall>
|
||||||
|
|
||||||
|
<!-- Now create the .jnlp file: -->
|
||||||
|
<antcall target="create-${my.app}-jnlp-file"/>
|
||||||
|
<!-- And save it: -->
|
||||||
|
<copy todir="${dist}/java-web-start">
|
||||||
|
<fileset dir="${dist}">
|
||||||
|
<include name="${my.app}.jnlp"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
<!-- Finally, call jwsbuild.xml appropriately: -->
|
<!-- Finally, call jwsbuild.xml appropriately: -->
|
||||||
<ant antfile="jwsbuild.xml" target="package-for-java-web-start"
|
<ant antfile="jwsbuild.xml" target="package-for-java-web-start"
|
||||||
inheritAll="false" inheritRefs="false">
|
inheritAll="false" inheritRefs="false">
|
||||||
|
@ -834,6 +851,185 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<target name="create-Jskad-jnlp-file"
|
||||||
|
depends="init"
|
||||||
|
description="Creates Jskad's JNLP file based on a template hard-coded into this build file and your choice of the jnlp.codebase property.">
|
||||||
|
|
||||||
|
<!-- Write the head of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/Jskad.jnlp"
|
||||||
|
append="false"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<jnlp spec="1.0+"]]></echo>
|
||||||
|
|
||||||
|
<!-- Write the middle of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/Jskad.jnlp"
|
||||||
|
append="true">
|
||||||
|
<![CDATA[ codebase="]]>${jnlp.codebase}<![CDATA["]]></echo>
|
||||||
|
|
||||||
|
<!-- Write the tail of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/Jskad.jnlp"
|
||||||
|
append="true">
|
||||||
|
<![CDATA[ href="Jskad.jnlp">
|
||||||
|
<information>
|
||||||
|
<title>Jskad</title>
|
||||||
|
<vendor>THDL</vendor>
|
||||||
|
<homepage href="http://iris.lib.virginia.edu/tibet/tools/jskad.html" />
|
||||||
|
|
||||||
|
<description>
|
||||||
|
Jskad is a simple text editor for the Tibetan language, using the
|
||||||
|
Wylie transliteration and supporting several virtual keyboards.
|
||||||
|
You must install the Tibetan Machine Web fonts before using
|
||||||
|
Jskad.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<offline-allowed/>
|
||||||
|
</information>
|
||||||
|
<security>
|
||||||
|
<all-permissions/>
|
||||||
|
</security>
|
||||||
|
<resources>
|
||||||
|
<j2se version="1.2+"/>
|
||||||
|
<jar href="Jskad-JWS.jar" />
|
||||||
|
</resources>
|
||||||
|
<application-desc />
|
||||||
|
</jnlp>
|
||||||
|
]]></echo>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<target name="create-Savant-jnlp-file"
|
||||||
|
depends="init"
|
||||||
|
description="Creates Savant's JNLP file based on a template hard-coded into this build file and your choice of the jnlp.codebase property.">
|
||||||
|
|
||||||
|
<!-- Write the head of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/Savant.jnlp"
|
||||||
|
append="false"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<jnlp spec="1.0+"]]></echo>
|
||||||
|
|
||||||
|
<!-- Write the middle of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/Savant.jnlp"
|
||||||
|
append="true">
|
||||||
|
<![CDATA[ codebase="]]>${jnlp.codebase}<![CDATA["]]></echo>
|
||||||
|
|
||||||
|
<!-- Write the tail of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/Savant.jnlp"
|
||||||
|
append="true">
|
||||||
|
<![CDATA[ href="Savant.jnlp">
|
||||||
|
<information>
|
||||||
|
<title>Savant</title>
|
||||||
|
<vendor>THDL</vendor>
|
||||||
|
<homepage href="http://iris.lib.virginia.edu/tibet/tools/savant/" />
|
||||||
|
|
||||||
|
<description>
|
||||||
|
Savant displays foreign-language text, audio, and video
|
||||||
|
side-by-side to help you learn foreign languages or just study.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<offline-allowed/>
|
||||||
|
</information>
|
||||||
|
<security>
|
||||||
|
<all-permissions/>
|
||||||
|
</security>
|
||||||
|
<resources>
|
||||||
|
<j2se version="1.2+"/>
|
||||||
|
<jar href="Savant-JWS.jar" />
|
||||||
|
</resources>
|
||||||
|
<application-desc />
|
||||||
|
</jnlp>
|
||||||
|
]]></echo>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<target name="create-QuillDriver-jnlp-file"
|
||||||
|
depends="init"
|
||||||
|
description="Creates QuillDriver's JNLP file based on a template hard-coded into this build file and your choice of the jnlp.codebase property.">
|
||||||
|
|
||||||
|
<!-- Write the head of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/QuillDriver.jnlp"
|
||||||
|
append="false"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<jnlp spec="1.0+"]]></echo>
|
||||||
|
|
||||||
|
<!-- Write the middle of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/QuillDriver.jnlp"
|
||||||
|
append="true">
|
||||||
|
<![CDATA[ codebase="]]>${jnlp.codebase}<![CDATA["]]></echo>
|
||||||
|
|
||||||
|
<!-- Write the tail of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/QuillDriver.jnlp"
|
||||||
|
append="true">
|
||||||
|
<![CDATA[ href="QuillDriver.jnlp">
|
||||||
|
<information>
|
||||||
|
<title>QuillDriver</title>
|
||||||
|
<vendor>THDL</vendor>
|
||||||
|
<homepage href="http://iris.lib.virginia.edu/tibet/tools/quilldriver/" />
|
||||||
|
|
||||||
|
<description>
|
||||||
|
QuillDriver helps you develop content for Savant, another THDL tool.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<offline-allowed/>
|
||||||
|
</information>
|
||||||
|
<security>
|
||||||
|
<all-permissions/>
|
||||||
|
</security>
|
||||||
|
<resources>
|
||||||
|
<j2se version="1.2+"/>
|
||||||
|
<jar href="QuillDriver-JWS.jar" />
|
||||||
|
</resources>
|
||||||
|
<application-desc />
|
||||||
|
</jnlp>
|
||||||
|
]]></echo>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<target name="create-DictionarySearchAppletAndJavaWebStart-jnlp-file"
|
||||||
|
depends="init"
|
||||||
|
description="Creates the translation tool's JNLP file based on a template hard-coded into this build file and your choice of the jnlp.codebase property.">
|
||||||
|
|
||||||
|
<!-- Write the head of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/DictionarySearchAppletAndJavaWebStart.jnlp"
|
||||||
|
append="false"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<jnlp spec="1.0+"]]></echo>
|
||||||
|
|
||||||
|
<!-- Write the middle of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/DictionarySearchAppletAndJavaWebStart.jnlp"
|
||||||
|
append="true">
|
||||||
|
<![CDATA[ codebase="]]>${jnlp.codebase}<![CDATA["]]></echo>
|
||||||
|
|
||||||
|
<!-- Write the tail of the .jnlp file: -->
|
||||||
|
<echo file="${dist}/DictionarySearchAppletAndJavaWebStart.jnlp"
|
||||||
|
append="true">
|
||||||
|
<![CDATA[ href="DictionarySearchAppletAndJavaWebStart.jnlp">
|
||||||
|
<information>
|
||||||
|
<title>DictionarySearchAppletAndJavaWebStart</title>
|
||||||
|
<vendor>THDL</vendor>
|
||||||
|
<homepage href="http://iris.lib.virginia.edu/tibet/reference/translation-tool.html" />
|
||||||
|
|
||||||
|
<description>
|
||||||
|
The translation tool provides a Tibetan-to-English dictionary.
|
||||||
|
You must have the Tibetan Machine Web fonts installed on your
|
||||||
|
computer to take full advantage of this dictionary.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<offline-allowed/>
|
||||||
|
</information>
|
||||||
|
<security>
|
||||||
|
<all-permissions/>
|
||||||
|
</security>
|
||||||
|
<resources>
|
||||||
|
<j2se version="1.2+"/>
|
||||||
|
<jar href="DictionarySearchAppletAndJavaWebStart-JWS.jar" />
|
||||||
|
</resources>
|
||||||
|
<application-desc />
|
||||||
|
</jnlp>
|
||||||
|
]]></echo>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
|
|
26
dist/DictionarySearchAppletAndJavaWebStart.jnlp
vendored
26
dist/DictionarySearchAppletAndJavaWebStart.jnlp
vendored
|
@ -1,26 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<jnlp spec="1.0+"
|
|
||||||
codebase="http://iris.lib.virginia.edu/tibet/tools"
|
|
||||||
href="DictionarySearchAppletAndJavaWebStart.jnlp">
|
|
||||||
<information>
|
|
||||||
<title>DictionarySearchAppletAndJavaWebStart</title>
|
|
||||||
<vendor>THDL</vendor>
|
|
||||||
<homepage href="http://iris.lib.virginia.edu/tibet/reference/translation-tool.html" />
|
|
||||||
|
|
||||||
<description>
|
|
||||||
The translation tool provides a Tibetan-to-English dictionary.
|
|
||||||
You must have the Tibetan Machine Web fonts installed on your
|
|
||||||
computer to take full advantage of this dictionary.
|
|
||||||
</description>
|
|
||||||
|
|
||||||
<offline-allowed/>
|
|
||||||
</information>
|
|
||||||
<security>
|
|
||||||
<all-permissions/>
|
|
||||||
</security>
|
|
||||||
<resources>
|
|
||||||
<j2se version="1.2+"/>
|
|
||||||
<jar href="DictionarySearchAppletAndJavaWebStart-JWS.jar" />
|
|
||||||
</resources>
|
|
||||||
<application-desc />
|
|
||||||
</jnlp>
|
|
27
dist/Jskad.jnlp
vendored
27
dist/Jskad.jnlp
vendored
|
@ -1,27 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<jnlp spec="1.0+"
|
|
||||||
codebase="http://iris.lib.virginia.edu/tibet/tools"
|
|
||||||
href="Jskad.jnlp">
|
|
||||||
<information>
|
|
||||||
<title>Jskad</title>
|
|
||||||
<vendor>THDL</vendor>
|
|
||||||
<homepage href="http://iris.lib.virginia.edu/tibet/tools/jskad.html" />
|
|
||||||
|
|
||||||
<description>
|
|
||||||
Jskad is a simple text editor for the Tibetan language, using the
|
|
||||||
Wylie transliteration and supporting several virtual keyboards.
|
|
||||||
You must install the Tibetan Machine Web fonts before using
|
|
||||||
Jskad.
|
|
||||||
</description>
|
|
||||||
|
|
||||||
<offline-allowed/>
|
|
||||||
</information>
|
|
||||||
<security>
|
|
||||||
<all-permissions/>
|
|
||||||
</security>
|
|
||||||
<resources>
|
|
||||||
<j2se version="1.2+"/>
|
|
||||||
<jar href="Jskad-JWS.jar" />
|
|
||||||
</resources>
|
|
||||||
<application-desc />
|
|
||||||
</jnlp>
|
|
24
dist/QuillDriver.jnlp
vendored
24
dist/QuillDriver.jnlp
vendored
|
@ -1,24 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<jnlp spec="1.0+"
|
|
||||||
codebase="http://iris.lib.virginia.edu/tibet/tools"
|
|
||||||
href="QuillDriver.jnlp">
|
|
||||||
<information>
|
|
||||||
<title>QuillDriver</title>
|
|
||||||
<vendor>THDL</vendor>
|
|
||||||
<homepage href="http://iris.lib.virginia.edu/tibet/tools/quilldriver/" />
|
|
||||||
|
|
||||||
<description>
|
|
||||||
QuillDriver helps you develop content for Savant, another THDL tool.
|
|
||||||
</description>
|
|
||||||
|
|
||||||
<offline-allowed/>
|
|
||||||
</information>
|
|
||||||
<security>
|
|
||||||
<all-permissions/>
|
|
||||||
</security>
|
|
||||||
<resources>
|
|
||||||
<j2se version="1.2+"/>
|
|
||||||
<jar href="QuillDriver-JWS.jar" />
|
|
||||||
</resources>
|
|
||||||
<application-desc />
|
|
||||||
</jnlp>
|
|
7
dist/README.TXT
vendored
7
dist/README.TXT
vendored
|
@ -1,6 +1,7 @@
|
||||||
This directory contains the JNLP files that we use to distribute our
|
This directory will contain the JNLP files that we use to distribute
|
||||||
Java programs via Java Web Start. Ant creates subdirectories here
|
our Java programs via Java Web Start. Ant creates them, and it
|
||||||
also and populates them with various JARs, WARs, Zip files, etc.
|
creates subdirectories here and populates them with various JARs,
|
||||||
|
WARs, Zip files, etc.
|
||||||
|
|
||||||
DC
|
DC
|
||||||
|
|
||||||
|
|
25
dist/Savant.jnlp
vendored
25
dist/Savant.jnlp
vendored
|
@ -1,25 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<jnlp spec="1.0+"
|
|
||||||
codebase="http://iris.lib.virginia.edu/tibet/tools"
|
|
||||||
href="Savant.jnlp">
|
|
||||||
<information>
|
|
||||||
<title>Savant</title>
|
|
||||||
<vendor>THDL</vendor>
|
|
||||||
<homepage href="http://iris.lib.virginia.edu/tibet/tools/savant/" />
|
|
||||||
|
|
||||||
<description>
|
|
||||||
Savant displays foreign-language text, audio, and video
|
|
||||||
side-by-side to help you learn foreign languages or just study.
|
|
||||||
</description>
|
|
||||||
|
|
||||||
<offline-allowed/>
|
|
||||||
</information>
|
|
||||||
<security>
|
|
||||||
<all-permissions/>
|
|
||||||
</security>
|
|
||||||
<resources>
|
|
||||||
<j2se version="1.2+"/>
|
|
||||||
<jar href="Savant-JWS.jar" />
|
|
||||||
</resources>
|
|
||||||
<application-desc />
|
|
||||||
</jnlp>
|
|
Loading…
Reference in a new issue