jskad-all-in-one-dist, and thus jskad-jws, was botched.

nightly-build now cleans only ${bin} so that ${dist}'s files stay
around.

We now unwar all JAR files.
This commit is contained in:
dchandler 2003-02-03 08:21:37 +00:00
parent 541527a54a
commit 56de29cf4f
4 changed files with 25 additions and 20 deletions

View file

@ -47,6 +47,9 @@
<property name="javacdashg" value="yes"/> <property name="javacdashg" value="yes"/>
<property name="source" location="source"/> <property name="source" location="source"/>
<property name="license" location="license"/> <property name="license" location="license"/>
<!-- 'ant clean' won't work well if ${jskadbin} and the other *bin aren't
subdirectories of ${bin}. -->
<property name="bin" location="bin"/> <property name="bin" location="bin"/>
<property name="jskadbin" location="bin/jskad"/> <property name="jskadbin" location="bin/jskad"/>
<property name="tibbiblbin" location="bin/tibbibl"/> <property name="tibbiblbin" location="bin/tibbibl"/>
@ -57,6 +60,7 @@
<property name="tthandheldbin" location="bin/tt-handheld"/> <property name="tthandheldbin" location="bin/tt-handheld"/>
<property name="ttservletbin" location="bin/tt-servlet"/> <property name="ttservletbin" location="bin/tt-servlet"/>
<property name="savantbin" location="bin/savant"/> <property name="savantbin" location="bin/savant"/>
<property name="docs" location="docs"/> <property name="docs" location="docs"/>
<property name="dist" location="dist"/> <property name="dist" location="dist"/>
<property name="vanillalib" location="${dist}/lib-vanilla"/> <property name="vanillalib" location="${dist}/lib-vanilla"/>
@ -158,16 +162,6 @@
<mkdir dir="${lib}"/> <mkdir dir="${lib}"/>
<mkdir dir="${dist}/java-web-start"/> <mkdir dir="${dist}/java-web-start"/>
<mkdir dir="${dist}/source"/> <mkdir dir="${dist}/source"/>
<mkdir dir="${bin}"/>
<mkdir dir="${jskadbin}"/>
<mkdir dir="${tibbiblbin}"/>
<mkdir dir="${junitbin}"/>
<mkdir dir="${qdbin}"/>
<mkdir dir="${ttstandalonebin}"/>
<mkdir dir="${tthandheldbin}"/>
<mkdir dir="${ttservletbin}"/>
<mkdir dir="${ttappletjwsbin}"/>
<mkdir dir="${savantbin}"/>
<mkdir dir="${publicjavadocs}"/> <mkdir dir="${publicjavadocs}"/>
<mkdir dir="${privatejavadocs}"/> <mkdir dir="${privatejavadocs}"/>
</target> </target>
@ -237,6 +231,7 @@
<target name="jskad-compile" depends="init" <target name="jskad-compile" depends="init"
description="compiles Jskad" > description="compiles Jskad" >
<mkdir dir="${jskadbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir"> <antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${jskadbin}"/> <param name="my.bin" value="${jskadbin}"/>
</antcall> </antcall>
@ -286,6 +281,7 @@
<target name="tibbibl-compile" depends="init" <target name="tibbibl-compile" depends="init"
description="compiles Tibbibl" > description="compiles Tibbibl" >
<mkdir dir="${tibbiblbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir"> <antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${tibbiblbin}"/> <param name="my.bin" value="${tibbiblbin}"/>
</antcall> </antcall>
@ -305,6 +301,7 @@
<target name="compile-junit-tests" depends="init" <target name="compile-junit-tests" depends="init"
description="compiles all JUnit test cases that can be compiled in the present CLASSPATH (NB that this distinction is just wishful thinking for now becuase we have such weak test coverage at this point)" > description="compiles all JUnit test cases that can be compiled in the present CLASSPATH (NB that this distinction is just wishful thinking for now becuase we have such weak test coverage at this point)" >
<mkdir dir="${junitbin}"/>
<antcall target="our-internal-javac-task"> <antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/> <param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file" <param name="my.included.source.file"
@ -319,6 +316,7 @@
<target name="savant-compile" depends="init" <target name="savant-compile" depends="init"
description="compiles Savant" > description="compiles Savant" >
<mkdir dir="${savantbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir"> <antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${savantbin}"/> <param name="my.bin" value="${savantbin}"/>
</antcall> </antcall>
@ -359,6 +357,7 @@
<!-- Builds the standalone translation tool: --> <!-- Builds the standalone translation tool: -->
<target name="tt-standalone-compile" depends="init" <target name="tt-standalone-compile" depends="init"
description="compiles the standalone Translation Tool" > description="compiles the standalone Translation Tool" >
<mkdir dir="${ttstandalonebin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir"> <antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${ttstandalonebin}"/> <param name="my.bin" value="${ttstandalonebin}"/>
</antcall> </antcall>
@ -397,6 +396,7 @@
Compiling with J2SDK 1.3 does so by default, by the way. --> Compiling with J2SDK 1.3 does so by default, by the way. -->
<target name="tt-handheld-compile" depends="init" <target name="tt-handheld-compile" depends="init"
description="compiles the handheld Translation Tool" > description="compiles the handheld Translation Tool" >
<mkdir dir="${tthandheldbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir"> <antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${tthandheldbin}"/> <param name="my.bin" value="${tthandheldbin}"/>
</antcall> </antcall>
@ -422,6 +422,7 @@
<!-- Builds the applet + the Java Web Start translation tool: --> <!-- Builds the applet + the Java Web Start translation tool: -->
<target name="tt-applet-plus-jws-compile" depends="init" <target name="tt-applet-plus-jws-compile" depends="init"
description="compiles the applet + Java Web Start forms of the Translation Tool" > description="compiles the applet + Java Web Start forms of the Translation Tool" >
<mkdir dir="${ttappletjwsbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir"> <antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${ttappletjwsbin}"/> <param name="my.bin" value="${ttappletjwsbin}"/>
</antcall> </antcall>
@ -449,6 +450,7 @@
depends="ttsc-init" depends="ttsc-init"
if="found.servlet.classes" if="found.servlet.classes"
description="compiles the servlet form of the Translation Tool if you've set the j2ee.sdk.home property correctly" > description="compiles the servlet form of the Translation Tool if you've set the j2ee.sdk.home property correctly" >
<mkdir dir="${ttservletbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir"> <antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${ttservletbin}"/> <param name="my.bin" value="${ttservletbin}"/>
</antcall> </antcall>
@ -490,6 +492,7 @@
<target name="qd-compile" depends="init" <target name="qd-compile" depends="init"
description="compiles QuillDriver" > description="compiles QuillDriver" >
<!-- Compile the java code from ${source} into ${qdbin} --> <!-- Compile the java code from ${source} into ${qdbin} -->
<mkdir dir="${qdbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir"> <antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${qdbin}"/> <param name="my.bin" value="${qdbin}"/>
</antcall> </antcall>
@ -714,17 +717,14 @@
<!-- DLC FIXME: This used to include Jskad2Javascript.class, etc. But it no longer does. Compile those extra files if Edward hasn't removed them! --> <!-- DLC FIXME: This used to include Jskad2Javascript.class, etc. But it no longer does. Compile those extra files if Edward hasn't removed them! -->
<target name="jskad-all-in-one-dist" depends="jskad-compile" <target name="jskad-all-in-one-dist" depends="jskad-compile"
description="generates the self-contained binary distribution for Jskad" > description="generates the self-contained binary distribution for Jskad" >
<!-- Now put everything in ${bin} and ${ext}/netscape, plus <!-- Now put everything in ${jskadbin} and ${ext}/netscape, plus
the .ini files, into the JAR file the .ini files, into the JAR file
--> -->
<copy todir="${jskadbin}/netscape"> <copy todir="${jskadbin}/netscape">
<fileset dir="${ext}/netscape"/> <fileset dir="${ext}/netscape"/>
</copy> </copy>
<jar jarfile="${lib}/Jskad-self-contained${my.jar.suffix}.jar" <jar jarfile="${lib}/Jskad-self-contained${my.jar.suffix}.jar"
basedir="${jskadbin}" basedir="${jskadbin}">
includes="org/thdl/tib/**,org/thdl/util/**,netscape/**"
index="true"
update="no">
<manifest> <manifest>
<attribute name="Main-Class" value="org.thdl.tib.input.Jskad"/> <attribute name="Main-Class" value="org.thdl.tib.input.Jskad"/>
</manifest> </manifest>
@ -965,6 +965,7 @@
<param name="key.alias" value="me"/> <param name="key.alias" value="me"/>
<param name="dgkey.password" value="nightly"/> <param name="dgkey.password" value="nightly"/>
<param name="keystore.password" value="nightly"/> <param name="keystore.password" value="nightly"/>
<param name="jnlp.codebase" value="http://he.is-a-geek.org/thdl/nightly/builds/java-web-start"/>
</antcall> </antcall>
</target> </target>
@ -1103,8 +1104,8 @@
<fail message="Use 'ant -Ddgkey.password=psst' to sign a Java Web Start WAR file." <fail message="Use 'ant -Ddgkey.password=psst' to sign a Java Web Start WAR file."
unless="dgkey.password"/> unless="dgkey.password"/>
<!-- Clean: (FIXME: clean only what you must clean, the appropriate bin dir.) --> <!-- Clean: (FIXME: clean only what you must clean, the appropriate bin dir, not the whole bin tree.) -->
<antcall target="clean"/> <delete dir="${bin}"/>
<!-- Now, having cleaned, we create ${my.app}.jar: --> <!-- Now, having cleaned, we create ${my.app}.jar: -->
<antcall target="${my.prereq}"> <antcall target="${my.prereq}">

4
dist/.cvsignore vendored
View file

@ -1,3 +1,7 @@
DictionarySearchAppletAndJavaWebStart.jnlp
Jskad.jnlp
QuillDriver.jnlp
Savant.jnlp
docs docs
java-web-start java-web-start
lib-jws lib-jws

View file

@ -24,7 +24,7 @@
<target name="fail-nicely" <target name="fail-nicely"
description="Tells the user to use build.xml, not this subbuildfile."> description="Tells the user to use build.xml, not this subbuildfile.">
<fail message="Do not use this file directly; use build.xml file instead, which then uses this file."/> <fail message="Do not use this file directly; use build.xml instead, which then uses this file."/>
</target> </target>

View file

@ -27,7 +27,7 @@
<target name="fail-nicely" description="Tells the user to use build.xml, not this subbuildfile."> <target name="fail-nicely" description="Tells the user to use build.xml, not this subbuildfile.">
<fail message="Do not use this file directly; use build.xml file instead, which then uses this file."/> <fail message="Do not use this file directly; use build.xml instead, which then uses this file."/>
</target> </target>
@ -103,7 +103,7 @@
<unwar src="${dist}/java-web-start/${my.app}-web-start.war" <unwar src="${dist}/java-web-start/${my.app}-web-start.war"
dest="${dist}/java-web-start/"> dest="${dist}/java-web-start/">
<patternset> <patternset>
<include name="${my.app}.jar"/> <include name="${my.app}*.jar"/>
<exclude name="**/*"/> <exclude name="**/*"/>
</patternset> </patternset>
</unwar> </unwar>