The JARs built no longer have "-JWS" and "-vanilla" suffixes.

Instead, there are dist/lib-jws/ and dist/lib-vanilla/ directories.
This commit is contained in:
dchandler 2002-11-16 18:04:47 +00:00
parent 5d212a0671
commit 9f232fc5e2
2 changed files with 37 additions and 26 deletions

View file

@ -35,7 +35,7 @@
</description> </description>
<!-- set global properties for this build --> <!-- set global properties for this build -->
<property name="my.jar.suffix" value="vanilla"/> <property name="my.jar.suffix" value=""/>
<property name="link.offline" value="false"/> <property name="link.offline" value="false"/>
<property name="javacdashg" value="yes"/> <property name="javacdashg" value="yes"/>
<property name="source" location="source"/> <property name="source" location="source"/>
@ -50,6 +50,9 @@
<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="jwslib" location="${dist}/lib-jws"/>
<property name="lib" location="${vanillalib}"/>
<property name="ext" location="extensions"/> <property name="ext" location="extensions"/>
<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"/>
@ -132,7 +135,9 @@
<!-- Create the build directory structure used by compile --> <!-- Create the build directory structure used by compile -->
<mkdir dir="${dist}/releases"/> <mkdir dir="${dist}/releases"/>
<mkdir dir="${dist}/docs"/> <mkdir dir="${dist}/docs"/>
<mkdir dir="${dist}/lib"/> <mkdir dir="${vanillalib}"/>
<mkdir dir="${jwslib}"/>
<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="${bin}"/>
@ -382,6 +387,7 @@
<antcall target="compile-from-scratch-and-call-jws-subbuild"> <antcall target="compile-from-scratch-and-call-jws-subbuild">
<param name="my.app" value="Jskad"/> <param name="my.app" value="Jskad"/>
<param name="my.prereq" value="jskad-dist"/> <param name="my.prereq" value="jskad-dist"/>
<param name="lib" value="${jwslib}"/>
</antcall> </antcall>
</target> </target>
@ -394,6 +400,7 @@
<antcall target="compile-from-scratch-and-call-jws-subbuild"> <antcall target="compile-from-scratch-and-call-jws-subbuild">
<param name="my.app" value="Savant"/> <param name="my.app" value="Savant"/>
<param name="my.prereq" value="savant-dist"/> <param name="my.prereq" value="savant-dist"/>
<param name="lib" value="${jwslib}"/>
</antcall> </antcall>
</target> </target>
@ -406,6 +413,7 @@
<antcall target="compile-from-scratch-and-call-jws-subbuild"> <antcall target="compile-from-scratch-and-call-jws-subbuild">
<param name="my.app" value="QuillDriver"/> <param name="my.app" value="QuillDriver"/>
<param name="my.prereq" value="qd-dist"/> <param name="my.prereq" value="qd-dist"/>
<param name="lib" value="${jwslib}"/>
</antcall> </antcall>
</target> </target>
@ -416,6 +424,7 @@
<antcall target="compile-from-scratch-and-call-jws-subbuild"> <antcall target="compile-from-scratch-and-call-jws-subbuild">
<param name="my.app" value="DictionarySearchAppletAndJavaWebStart"/> <param name="my.app" value="DictionarySearchAppletAndJavaWebStart"/>
<param name="my.prereq" value="tt-applet-plus-jws-dist"/> <param name="my.prereq" value="tt-applet-plus-jws-dist"/>
<param name="lib" value="${jwslib}"/>
</antcall> </antcall>
</target> </target>
@ -443,7 +452,7 @@
<target name="jskad-dist" depends="jskad-compile" <target name="jskad-dist" depends="jskad-compile"
description="generates the bare Jskad binary distribution" > description="generates the bare Jskad binary distribution" >
<!-- Put everything in ${jskadbin} into the JAR file --> <!-- Put everything in ${jskadbin} into the JAR file -->
<jar jarfile="${dist}/lib/Jskad-${my.jar.suffix}.jar" <jar jarfile="${lib}/Jskad${my.jar.suffix}.jar"
basedir="${jskadbin}"> basedir="${jskadbin}">
<manifest> <manifest>
<attribute name="Main-Class" value="org.thdl.tib.input.Jskad"/> <attribute name="Main-Class" value="org.thdl.tib.input.Jskad"/>
@ -457,7 +466,7 @@
<target name="tt-standalone-dist" depends="tt-standalone-compile" <target name="tt-standalone-dist" depends="tt-standalone-compile"
description="generates the standalone translation tool's binary distribution." > description="generates the standalone translation tool's binary distribution." >
<!-- Put everything in ${ttstandalonebin} into the JAR file --> <!-- Put everything in ${ttstandalonebin} into the JAR file -->
<jar jarfile="${dist}/lib/DictionarySearchStandalone-${my.jar.suffix}.jar" <jar jarfile="${lib}/DictionarySearchStandalone${my.jar.suffix}.jar"
basedir="${ttstandalonebin}"> basedir="${ttstandalonebin}">
<manifest> <manifest>
<attribute name="Main-Class" <attribute name="Main-Class"
@ -470,7 +479,7 @@
<target name="tt-handheld-dist" depends="tt-handheld-compile" <target name="tt-handheld-dist" depends="tt-handheld-compile"
description="generates the handheld translation tool's binary distribution." > description="generates the handheld translation tool's binary distribution." >
<!-- Put everything in ${tthandheldbin} into the JAR file --> <!-- Put everything in ${tthandheldbin} into the JAR file -->
<jar jarfile="${dist}/lib/DictionarySearchHandheld-${my.jar.suffix}.jar" <jar jarfile="${lib}/DictionarySearchHandheld${my.jar.suffix}.jar"
basedir="${tthandheldbin}"> basedir="${tthandheldbin}">
<manifest> <manifest>
<attribute name="Main-Class" <attribute name="Main-Class"
@ -483,7 +492,7 @@
<target name="tt-applet-plus-jws-dist" depends="tt-applet-plus-jws-compile" <target name="tt-applet-plus-jws-dist" depends="tt-applet-plus-jws-compile"
description="generates the applet-plus-jws translation tool's binary distribution." > description="generates the applet-plus-jws translation tool's binary distribution." >
<!-- Put everything in ${ttappletjwsbin} into the JAR file --> <!-- Put everything in ${ttappletjwsbin} into the JAR file -->
<jar jarfile="${dist}/lib/DictionarySearchAppletAndJavaWebStart-${my.jar.suffix}.jar" <jar jarfile="${lib}/DictionarySearchAppletAndJavaWebStart${my.jar.suffix}.jar"
basedir="${ttappletjwsbin}"> basedir="${ttappletjwsbin}">
<!-- We have two choices here, but the web page will call for <!-- We have two choices here, but the web page will call for
AppletScannerFilter, so the double-click should open the AppletScannerFilter, so the double-click should open the
@ -500,7 +509,7 @@
if="found.servlet.classes" if="found.servlet.classes"
description="generates the servlet translation tool's binary distribution." > description="generates the servlet translation tool's binary distribution." >
<!-- Put everything in ${ttservletbin} into the JAR file --> <!-- Put everything in ${ttservletbin} into the JAR file -->
<jar jarfile="${dist}/lib/DictionarySearchServlet-${my.jar.suffix}.jar" <jar jarfile="${lib}/DictionarySearchServlet${my.jar.suffix}.jar"
basedir="${ttservletbin}"> basedir="${ttservletbin}">
<!-- I don't think this'll work (I don't know servlets, mind <!-- I don't think this'll work (I don't know servlets, mind
@ -516,7 +525,7 @@
<target name="savant-dist" depends="savant-compile" <target name="savant-dist" depends="savant-compile"
description="generates the bare Savant binary distribution" > description="generates the bare Savant binary distribution" >
<!-- Put everything in ${savantbin} into the JAR file --> <!-- Put everything in ${savantbin} into the JAR file -->
<jar jarfile="${dist}/lib/Savant-${my.jar.suffix}.jar" <jar jarfile="${lib}/Savant${my.jar.suffix}.jar"
basedir="${savantbin}"> basedir="${savantbin}">
<manifest> <manifest>
<attribute name="Main-Class" value="org.thdl.savant.SavantShell"/> <attribute name="Main-Class" value="org.thdl.savant.SavantShell"/>
@ -528,7 +537,7 @@
<target name="qd-dist" depends="qd-compile" <target name="qd-dist" depends="qd-compile"
description="generates the bare QuillDriver binary distribution" > description="generates the bare QuillDriver binary distribution" >
<!-- Put everything in ${qdbin} into the JAR file --> <!-- Put everything in ${qdbin} into the JAR file -->
<jar jarfile="${dist}/lib/QuillDriver-${my.jar.suffix}.jar" <jar jarfile="${lib}/QuillDriver${my.jar.suffix}.jar"
basedir="${qdbin}"> basedir="${qdbin}">
<manifest> <manifest>
<attribute name="Main-Class" value="org.thdl.quilldriver.QDShell"/> <attribute name="Main-Class" value="org.thdl.quilldriver.QDShell"/>
@ -547,7 +556,7 @@
<copy todir="${jskadbin}/netscape"> <copy todir="${jskadbin}/netscape">
<fileset dir="${ext}/netscape"/> <fileset dir="${ext}/netscape"/>
</copy> </copy>
<jar jarfile="${dist}/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/**" includes="org/thdl/tib/**,org/thdl/util/**,netscape/**"
index="true" index="true"
@ -564,7 +573,9 @@
<!-- 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}/lib"/> <delete dir="${vanillalib}"/>
<delete dir="${jwslib}"/>
<delete dir="${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}/DictionarySearchAppletAndJavaWebStart.jnlp"/>
@ -635,7 +646,7 @@
<target name="qd-run" depends="qd-dist" description="runs QuillDriver"> <target name="qd-run" depends="qd-dist" description="runs QuillDriver">
<java classname="org.thdl.quilldriver.QDShell" fork="yes"> <java classname="org.thdl.quilldriver.QDShell" fork="yes">
<classpath> <classpath>
<pathelement location="${dist}/lib/QuillDriver-${my.jar.suffix}.jar"/> <pathelement location="${lib}/QuillDriver${my.jar.suffix}.jar"/>
<path refid="entire.class.path"/> <path refid="entire.class.path"/>
</classpath> </classpath>
<jvmarg value="-Dthdl.debug=${thdl.debug}"/> <jvmarg value="-Dthdl.debug=${thdl.debug}"/>
@ -645,7 +656,7 @@
<target name="savant-run" depends="savant-dist" description="runs Savant"> <target name="savant-run" depends="savant-dist" description="runs Savant">
<java classname="org.thdl.savant.SavantShell" fork="yes"> <java classname="org.thdl.savant.SavantShell" fork="yes">
<classpath> <classpath>
<pathelement location="${dist}/lib/Savant-${my.jar.suffix}.jar"/> <pathelement location="${lib}/Savant${my.jar.suffix}.jar"/>
<path refid="entire.class.path"/> <path refid="entire.class.path"/>
</classpath> </classpath>
<jvmarg value="-Dthdl.debug=${thdl.debug}"/> <jvmarg value="-Dthdl.debug=${thdl.debug}"/>
@ -655,7 +666,7 @@
<target name="jskad-run" depends="jskad-dist" description="runs Jskad"> <target name="jskad-run" depends="jskad-dist" description="runs Jskad">
<java classname="org.thdl.tib.input.Jskad" fork="yes"> <java classname="org.thdl.tib.input.Jskad" fork="yes">
<classpath> <classpath>
<pathelement location="${dist}/lib/Jskad-${my.jar.suffix}.jar"/> <pathelement location="${lib}/Jskad${my.jar.suffix}.jar"/>
<path refid="entire.class.path"/> <path refid="entire.class.path"/>
</classpath> </classpath>
<jvmarg value="-Dthdl.debug=${thdl.debug}"/> <jvmarg value="-Dthdl.debug=${thdl.debug}"/>
@ -666,7 +677,7 @@
<java classname="org.thdl.tib.scanner.WindowScannerFilter" fork="yes"> <java classname="org.thdl.tib.scanner.WindowScannerFilter" fork="yes">
<classpath> <classpath>
<pathelement <pathelement
location="${dist}/lib/DictionarySearchStandalone-${my.jar.suffix}.jar"/> location="${lib}/DictionarySearchStandalone${my.jar.suffix}.jar"/>
<path refid="entire.class.path"/> <path refid="entire.class.path"/>
</classpath> </classpath>
<jvmarg value="-Dthdl.debug=${thdl.debug}"/> <jvmarg value="-Dthdl.debug=${thdl.debug}"/>
@ -842,9 +853,9 @@
<!-- Clean: (FIXME: clean only what you must clean, the appropriate bin dir.) --> <!-- Clean: (FIXME: clean only what you must clean, the appropriate bin dir.) -->
<antcall target="clean"/> <antcall target="clean"/>
<!-- Now, having cleaned, we create ${my.app}-JWS.jar: --> <!-- Now, having cleaned, we create ${my.app}.jar: -->
<antcall target="${my.prereq}"> <antcall target="${my.prereq}">
<param name="my.jar.suffix" value="JWS"/> <param name="my.jar.suffix" value=""/>
<param name="javacdashg" value="no"/> <param name="javacdashg" value="no"/>
</antcall> </antcall>
@ -861,6 +872,7 @@
<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">
<property name="dist" value="${dist}"/> <property name="dist" value="${dist}"/>
<property name="lib" value="${jwslib}"/>
<property name="dgkey.password" value="${dgkey.password}"/> <property name="dgkey.password" value="${dgkey.password}"/>
<property name="keystore.password" value="${keystore.password}"/> <property name="keystore.password" value="${keystore.password}"/>
@ -907,7 +919,7 @@
</security> </security>
<resources> <resources>
<j2se version="1.2+"/> <j2se version="1.2+"/>
<jar href="Jskad-JWS.jar" /> <jar href="Jskad.jar" />
</resources> </resources>
<application-desc /> <application-desc />
</jnlp> </jnlp>
@ -952,7 +964,7 @@
</security> </security>
<resources> <resources>
<j2se version="1.2+"/> <j2se version="1.2+"/>
<jar href="Savant-JWS.jar" /> <jar href="Savant.jar" />
</resources> </resources>
<application-desc /> <application-desc />
</jnlp> </jnlp>
@ -995,7 +1007,7 @@
</security> </security>
<resources> <resources>
<j2se version="1.2+"/> <j2se version="1.2+"/>
<jar href="QuillDriver-JWS.jar" /> <jar href="QuillDriver.jar" />
</resources> </resources>
<application-desc /> <application-desc />
</jnlp> </jnlp>
@ -1040,7 +1052,7 @@
</security> </security>
<resources> <resources>
<j2se version="1.2+"/> <j2se version="1.2+"/>
<jar href="DictionarySearchAppletAndJavaWebStart-JWS.jar" /> <jar href="DictionarySearchAppletAndJavaWebStart.jar" />
</resources> </resources>
<application-desc /> <application-desc />
</jnlp> </jnlp>
@ -1093,7 +1105,6 @@
<antcall target="compile-QT4J-classes-accessed-by-reflection"/> <antcall target="compile-QT4J-classes-accessed-by-reflection"/>
</target> </target>
</project> </project>
<!-- My TO-DO list: --> <!-- My TO-DO list: -->

View file

@ -60,7 +60,7 @@
are only appropriate to Tomcat-type environments. are only appropriate to Tomcat-type environments.
Thus, you non-Tomcat-users should run 'jar xf Thus, you non-Tomcat-users should run 'jar xf
${my.app}-web-start.war ${my.app}-JWS.jar' to extract the ${my.app}-web-start.war ${my.app}.jar' to extract the
signed JAR file and copy the .jar and the signed JAR file and copy the .jar and the
${dist}/${my.app}.jnlp file (NOT the one in the WAR) to the ${dist}/${my.app}.jnlp file (NOT the one in the WAR) to the
web server. (Be sure that the web server has its MIME types web server. (Be sure that the web server has its MIME types
@ -88,8 +88,8 @@
<vampwar dest="${dist}/java-web-start/${my.app}-web-start.war"> <vampwar dest="${dist}/java-web-start/${my.app}-web-start.war">
<jnlp src="${dist}/${my.app}.jnlp"> <jnlp src="${dist}/${my.app}.jnlp">
<resources> <resources>
<fileset dir="${dist}/lib"> <fileset dir="${lib}">
<include name="${my.app}-JWS.jar" /> <include name="${my.app}.jar" />
</fileset> </fileset>
</resources> </resources>
</jnlp> </jnlp>
@ -105,7 +105,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}-JWS.jar"/> <include name="${my.app}.jar"/>
<exclude name="**/*"/> <exclude name="**/*"/>
</patternset> </patternset>
</unwar> </unwar>