Merge lp:~james-page/ubuntu/oneiric/jmol/ftbfs into lp:ubuntu/oneiric/jmol

Proposed by James Page
Status: Merged
Merge reported by: James Page
Merged at revision: not available
Proposed branch: lp:~james-page/ubuntu/oneiric/jmol/ftbfs
Merge into: lp:ubuntu/oneiric/jmol
Diff against target: 1666 lines (+1601/-2)
7 files modified
.pc/applied-patches (+1/-0)
.pc/fix-icedtea-web-plugin.patch/build.xml (+1554/-0)
build.xml (+6/-0)
debian/changelog (+9/-0)
debian/control (+3/-2)
debian/patches/fix-icedtea-web-plugin.patch (+27/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~james-page/ubuntu/oneiric/jmol/ftbfs
Reviewer Review Type Date Requested Status
Ubuntu Development Team Pending
Review via email: mp+75521@code.launchpad.net

Description of the change

Fixup FTBFS - resync from Debian next release once new revision hits testing.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.pc/applied-patches'
2--- .pc/applied-patches 2011-04-11 22:04:43 +0000
3+++ .pc/applied-patches 2011-09-15 11:23:35 +0000
4@@ -3,3 +3,4 @@
5 chime2jmol_binary.patch
6 right_cgi_diretory.patch
7 cgi_fix_shebang.patch
8+fix-icedtea-web-plugin.patch
9
10=== added directory '.pc/fix-icedtea-web-plugin.patch'
11=== added file '.pc/fix-icedtea-web-plugin.patch/build.xml'
12--- .pc/fix-icedtea-web-plugin.patch/build.xml 1970-01-01 00:00:00 +0000
13+++ .pc/fix-icedtea-web-plugin.patch/build.xml 2011-09-15 11:23:35 +0000
14@@ -0,0 +1,1554 @@
15+<project name="Jmol" default="main" basedir=".">
16+ <!--
17+ DocumentId $Id: build.xml 15069 2011-01-29 21:08:48Z nicove $
18+ -->
19+
20+ <!-- Contributions -->
21+ <!-- <for list ...> construct needs ant-contrib.jar -->
22+ <taskdef resource="net/sf/antcontrib/antlib.xml">
23+ <classpath>
24+ <pathelement location="${lib.dir}/ant-contrib.jar" />
25+ </classpath>
26+ </taskdef>
27+
28+ <!-- pull developer-specific settings from their home directory -->
29+ <property file="${user.home}/.jmol.build.properties" />
30+ <!-- compile options -->
31+ <property name="build.sysclasspath" value="ignore" />
32+ <property name="build.compiler" value="javac1.5" />
33+ <!-- for some reason, I can't get ant to use this ${java.version}
34+ property as the value of the source parameter -->
35+ <property name="java.version" value="1.5" />
36+ <property name="debug" value="off" />
37+ <property name="deprecation" value="off" />
38+ <property name="optimization" value="off" />
39+
40+ <property file="src/org/jmol/viewer/Jmol.properties" prefix="Jmol.properties" />
41+ <property name="version" value="${Jmol.properties.version}" />
42+ <property name="jvxl_version" value="0.1" />
43+
44+ <property name="tests.source.dir" value="source-tests" />
45+ <property name="lib.dir" value="jars" />
46+ <property name="plugin.dir" value="plugin-jars" />
47+ <property name="appjars.dir" value="build/appjars" />
48+ <property name="classes.dir" value="build/classes" />
49+ <property name="test-classes.dir" value="build/test-classes" />
50+ <property name="appletjars.dir" value="build/appletjars" />
51+ <property name="applet.classes.dir" value="build/applet-classes" />
52+ <property name="apisio.classes.dir" value="build/apisio-classes" />
53+ <property name="tests.dir" value="build/unit.tests" />
54+ <property name="javadoc.dir" value="build/javadoc" />
55+ <property name="jmol.applet.build.dir" value="build" />
56+ <property name="jmol.build.dir" value="build" />
57+ <property name="docbook-xsl" value="docbook-xsl-1.75.2" />
58+ <property name="docbook-xml" value="docbook-xml-4.4" />
59+ <property name="vecmath.jar" value="vecmath1.2-1.14.jar" />
60+ <property name="itext.jar" value="itext-1.4.5.jar" />
61+ <property name="commons-cli.jar" value="commons-cli-1.0.jar" />
62+
63+ <!-- you can set this by defining it in ~/.jmol.build.properties -->
64+ <property name="keystore.name" value="Must be set by user." />
65+
66+ <property file="proxy.properties" />
67+
68+ <import file="tools/build-i18n.xml"/>
69+
70+ <path id="project.class.path">
71+ <fileset dir="${lib.dir}">
72+ <include name="*.jar" />
73+ </fileset>
74+ </path>
75+
76+ <path id="applet-project.class.path">
77+ <fileset dir="${lib.dir}">
78+ <include name="*.jar" />
79+ </fileset>
80+ </path>
81+
82+ <path id="apisio-project.class.path">
83+ <fileset dir="${lib.dir}">
84+ <include name="${vecmath.jar}" />
85+ <include name="netscape.jar" />
86+ <include name="gnujaxp.jar" />
87+ </fileset>
88+ </path>
89+
90+ <target name="main" id="main" depends="init,jar,applet-jar,signed-applet,smiles-applet-jar"/>
91+
92+ <target name="all" id="all" depends="doc,main"/>
93+
94+ <target name="init" id="init">
95+ <tstamp/>
96+ </target>
97+
98+ <target name="initFailure" id="initFailure">
99+ <fail message="Init failed. See messages above." />
100+ </target>
101+
102+ <target name="setup" id="setup">
103+ <condition property="docbook-xsl.uptodate">
104+ <and>
105+ <uptodate targetfile="build/${docbook-xsl}"
106+ srcfile="doc/${docbook-xsl}.tar.gz" />
107+ <uptodate targetfile="build/${docbook-xsl}.timestamp"
108+ srcfile="build/${docbook-xsl}" />
109+ </and>
110+ </condition>
111+
112+ <condition property="docbook-xml.uptodate">
113+ <and>
114+ <uptodate targetfile="build/docbook-xml"
115+ srcfile="doc/${docbook-xml}.zip" />
116+ <uptodate targetfile="build/docbook-xml.timestamp"
117+ srcfile="build/docbook-xml" />
118+ </and>
119+ </condition>
120+
121+ <condition property="jmolGuide.uptodate">
122+ <and>
123+ <uptodate targetfile="build/doc/JmolUserGuide/index.html">
124+ <srcfiles dir="doc/source"
125+ includes="JmolGuide.docbook.xml, guide/*.docbook.xml"/>
126+ </uptodate>
127+ <uptodate targetfile="build/doc/JmolUserGuide_fr/index.html">
128+ <srcfiles dir="doc/source"
129+ includes="JmolGuide_fr.docbook.xml, guide/*_fr.docbook.xml"/>
130+ </uptodate>
131+ </and>
132+ </condition>
133+
134+ <condition property="jmolHistory.uptodate">
135+ <and>
136+ <uptodate targetfile="build/doc/JmolHistory/ChangeLog.html">
137+ <srcfiles dir="doc/source"
138+ includes="JmolHistory.xml,JmolHistoryToHtml.xsl,history/changes.xml" />
139+ </uptodate>
140+ <uptodate targetfile="build/doc/JmolHistory/ChangeLog_fr.html">
141+ <srcfiles dir="doc/source"
142+ includes="JmolHistory_fr.xml,JmolHistoryToHtml.xsl,history/changes_fr.xml" />
143+ </uptodate>
144+ <uptodate targetfile="build/doc/JmolHistory/ChangeLog_nl.html">
145+ <srcfiles dir="doc/source"
146+ includes="JmolHistory_nl.xml,JmolHistoryToHtml.xsl,history/changes_nl.xml" />
147+ </uptodate>
148+ </and>
149+ </condition>
150+
151+ <condition property="jmolDevelopersGuide.uptodate">
152+ <and>
153+ <uptodate targetfile="build/doc/JmolDevelopersGuide.html">
154+ <srcfiles dir="doc/source"
155+ includes="JmolDevelopersGuide.docbook.xml"/>
156+ </uptodate>
157+ <uptodate targetfile="build/doc/JmolDevelopersGuide_fr.html">
158+ <srcfiles dir="doc/source"
159+ includes="JmolDevelopersGuide_fr.docbook.xml"/>
160+ </uptodate>
161+ <uptodate targetfile="build/doc/JmolDevelopersGuide_de.html">
162+ <srcfiles dir="doc/source"
163+ includes="JmolDevelopersGuide_de.docbook.xml"/>
164+ </uptodate>
165+ </and>
166+ </condition>
167+
168+ <condition property="jmolAppletGuide.uptodate">
169+ <and>
170+ <uptodate targetfile="build/doc/JmolAppletGuide.html">
171+ <srcfiles dir="doc/source"
172+ includes="JmolAppletGuide.docbook.xml, applet/*.docbook.xml"/>
173+ </uptodate>
174+ <uptodate targetfile="build/doc/JmolAppletGuide_fr.html">
175+ <srcfiles dir="doc/source"
176+ includes="JmolAppletGuide_fr.docbook.xml, applet/*_fr.docbook.xml"/>
177+ </uptodate>
178+ <uptodate targetfile="build/doc/JmolAppletGuide_de.html">
179+ <srcfiles dir="doc/source"
180+ includes="JmolAppletGuide_de.docbook.xml"/>
181+ </uptodate>
182+ </and>
183+ </condition>
184+
185+ <available classname="com.icl.saxon.StyleSheet"
186+ classpath="${lib.dir}/saxon.jar"
187+ property="xsl.available"/>
188+ <uptodate property="javadoc.uptodate" targetfile="${javadoc.dir}/index.html">
189+ <srcfiles dir="src" includes="**/*.java, **/*.html" />
190+ </uptodate>
191+ <available file="${keystore.name}" property="keystore.present" />
192+ <!-- Optional proxy settings (if defined) -->
193+ <condition property="proxyHost"
194+ value="-Dhttp.proxyHost=${http.proxyHost}" >
195+ <not>
196+ <equals arg1="http.proxyHost" arg2="" />
197+ </not>
198+ </condition>
199+ <condition property="proxyPort"
200+ value="-Dhttp.proxyPort=${http.proxyPort}" >
201+ <not>
202+ <equals arg1="http.proxyPort" arg2="" />
203+ </not>
204+ </condition>
205+ </target>
206+
207+ <target id="classes" name="classes" depends="init">
208+ <mkdir dir="${classes.dir}"/>
209+ <javac srcdir="src" destdir="${classes.dir}"
210+ debug="${debug}" deprecation="${deprecation}"
211+ optimize="${optimization}" source="1.5" target="1.5">
212+ <classpath refid="project.class.path" />
213+ <!-- removed all CDK based code, use BioClipse instead -->
214+ <exclude name="org/openscience/jmol/app/JmolEditBus.java"/>
215+ <exclude name="org/openscience/jmol/io/ShelXReader.java"/>
216+ <exclude name="org/jmol/adapter/cdk/CdkJmolAdapter.java"/>
217+ <!-- removed all JCamp code, not finished -->
218+ <exclude name="org/jmol/jcamp/**/*.java"/>
219+ </javac>
220+ <copy todir="${classes.dir}" >
221+ <fileset dir="src">
222+ <include name="**/*.jpg" />
223+ <include name="**/*.gif" />
224+ <include name="**/*.png" />
225+ <include name="**/*.html" />
226+ <include name="**/*.js" />
227+ <include name="**/*.dtd" />
228+ <include name="**/*.properties" />
229+ <include name="**/Properties/*" />
230+ <!-- for testing internationalisation only:
231+ comment out the 2 lines above and uncomment the following 3 lines -->
232+ <!--
233+ <include name="**/JmolPop*.properties" />
234+ <include name="**/Properties/Jmol.properties" />
235+ <include name="**/Properties/Jmol-resources.properties" />
236+ -->
237+ <include name="**/Data/*" />
238+ <include name="**/*.txt" />
239+ </fileset>
240+ </copy>
241+ </target>
242+
243+ <target name="applet-classes" id="applet-classes" depends="init">
244+ <mkdir dir="${applet.classes.dir}"/>
245+ <copy todir="${applet.classes.dir}" >
246+ <fileset dir="src">
247+ <include name="org/jmol/modelkit/images/*" />
248+ </fileset>
249+ </copy>
250+
251+ <property name="build.compiler" value="javac1.4" />
252+ <!-- mth 20040713 ... with the Sun Java 1.5 compiler the default
253+ source code version is 1.5. And one cannot generate code for
254+ a 1.1 virtual machine from 1.5 source. Therefore, in order to
255+ compile for the 1.1 jvm, we need to specify that the source
256+ version is 1.3. (Note that we cannot use source=1.4 because
257+ of assertions)
258+
259+miguel 20041121
260+I do not know recall exactly what I meant by the statement
261+in (parentheses) above. I *think* that what I was saying
262+is that if you say 'source=1.4' then one also cannot
263+generate code for a 1.1 jvm, because of the special
264+support for assertions (which were introduced in 1.4).
265+
266+bob 2010.02.01
267+
268+changed source="1.3" target="1.1"
269+ to source="1.4" target="1.4"
270+
271+bob 2010.04.29
272+
273+in order to allow for faster BitSet methods
274+
275+changed source="1.4" target="1.4"
276+ to source="1.5" target="1.5"
277+
278+bob 2010.05.19
279+
280+changed just the applet classes back to:
281+
282+ source="1.4" target="1.4"
283+
284+all support for previous versions removed
285+
286+ -->
287+ <javac srcdir="src" destdir="${applet.classes.dir}"
288+ debug="${debug}" deprecation="${deprecation}"
289+ optimize="${optimization}"
290+ source="1.4" target="1.4"
291+ includesfile="applet.classes"
292+ classpathref="applet-project.class.path" />
293+
294+ <copy todir="${applet.classes.dir}" >
295+ <fileset dir="src">
296+ <include name="org/jmol/minimize/forcefield/*.txt" />
297+ <include name="jmol75x29x8.gif" />
298+ </fileset>
299+ </copy>
300+ <copy todir="${applet.classes.dir}" >
301+ <fileset dir="src">
302+ <include name="org/jmol/viewer/Jmol.properties" />
303+ </fileset>
304+ <filterchain>
305+ <striplinecomments>
306+ <comment value="#" />
307+ </striplinecomments>
308+ <linecontains>
309+ <contains value="=" />
310+ </linecontains>
311+ </filterchain>
312+ </copy>
313+ <copy todir="${applet.classes.dir}" >
314+ <fileset dir="${classes.dir}">
315+ <include name="**/JmolApplet/*/*.class" />
316+ </fileset>
317+ </copy>
318+ </target>
319+
320+ <target name="apisio-classes" id="apisio-classes" depends="init">
321+ <mkdir dir="${apisio.classes.dir}"/>
322+ <javac srcdir="src" destdir="${apisio.classes.dir}"
323+ debug="${debug}" deprecation="${deprecation}"
324+ optimize="${optimization}" source="1.5"
325+ includesfile="apisio.classes"
326+ classpathref="apisio-project.class.path" />
327+ <copy todir="${apisio.classes.dir}" >
328+ <fileset dir="src">
329+ <include name="**/g3d/*.html" />
330+ </fileset>
331+ </copy>
332+ </target>
333+
334+ <target name="check.cdkjars" id="check.cdkjars">
335+ <condition property="cdkjars.uptodate">
336+ <and>
337+ <uptodate targetfile="${appjars.dir}/org/openscience/cdk">
338+ <srcfiles dir="${lib.dir}" includes="jmol2cdk.jar"/>
339+ </uptodate>
340+ <uptodate targetfile="build/cdkjars.timestamp"
341+ srcfile="${appjars.dir}/org/openscience/cdk"/>
342+ </and>
343+ </condition>
344+ </target>
345+
346+ <target name="check.pluginjars" id="check.pluginjars">
347+ <condition property="pluginjars.uptodate">
348+ <and>
349+ <uptodate targetfile="${appjars.dir}/org/openscience/cdkplugin">
350+ <srcfiles dir="${plugin.dir}" includes="dirbrowser.jar"/>
351+ <srcfiles dir="${plugin.dir}" includes="dadmlbrowser.jar"/>
352+ </uptodate>
353+ <uptodate targetfile="build/pluginjars.timestamp"
354+ srcfile="${appjars.dir}/org/openscience/cdkplugin"/>
355+ </and>
356+ </condition>
357+ </target>
358+
359+ <target name="check.libjars" id="check.libjars">
360+ <condition property="libjars.uptodate">
361+ <and>
362+ <uptodate targetfile="${appjars.dir}">
363+ <srcfiles dir="${lib.dir}" includes="${vecmath.jar}"/>
364+ <!-- srcfiles dir="${lib.dir}" includes="Acme.jar"/ -->
365+ <srcfiles dir="${lib.dir}" includes="${itext.jar}"/>
366+ <srcfiles dir="${lib.dir}" includes="${commons-cli.jar}"/>
367+ </uptodate>
368+ <uptodate targetfile="build/libjars.timestamp"
369+ srcfile="${appjars.dir}"/>
370+ </and>
371+ </condition>
372+ </target>
373+
374+ <!-- target name="appjars" id="appjars" depends="libjars, cdkjars, pluginjars"/>
375+
376+ <target name="cdkjars" id="cdkjars" depends="check.cdkjars" unless="cdkjars.uptodate">
377+ <delete file="build/cdkjars.timestamp"/>
378+ <mkdir dir="${appjars.dir}"/>
379+ <unjar dest="${appjars.dir}" src="${lib.dir}/jmol2cdk.jar"/>
380+ <touch file="build/cdkjars.timestamp"/>
381+ </target>
382+
383+ <target name="pluginjars" id="pluginjars" depends="check.pluginjars" unless="pluginjars.uptodate">
384+ <delete file="build/pluginjars.timestamp"/>
385+ <mkdir dir="${appjars.dir}"/>
386+ <unjar dest="${appjars.dir}" src="${plugin.dir}/dirbrowser.jar"/>
387+ <unjar dest="${appjars.dir}" src="${plugin.dir}/dadmlbrowser.jar"/>
388+ <touch file="build/pluginjars.timestamp"/>
389+ </target -->
390+
391+ <target name="libjars" id="libjars" depends="check.libjars" unless="libjars.uptodate">
392+ <delete file="build/libjars.timestamp"/>
393+ <mkdir dir="${appjars.dir}"/>
394+ <unjar dest="${appjars.dir}" src="${lib.dir}/${vecmath.jar}"/>
395+ <!-- unjar dest="${appjars.dir}" src="${lib.dir}/Acme.jar"/ -->
396+ <unjar dest="${appjars.dir}" src="${lib.dir}/${itext.jar}"/>
397+ <unjar dest="${appjars.dir}" src="${lib.dir}/${commons-cli.jar}"/>
398+ <touch file="build/libjars.timestamp"/>
399+ </target>
400+
401+ <target name="jar" id="jar"
402+ depends="init,classes,jmolGuide,jmolHistory,jmolDevelopersGuide,libjars,main-i18n">
403+ <copy todir="${classes.dir}/org/openscience/jmol/Data/guide" >
404+ <fileset dir="build/doc/JmolUserGuide">
405+ <include name="**/*.html" />
406+ </fileset>
407+ </copy>
408+ <copy todir="${classes.dir}/org/openscience/jmol/Data/guide_fr" >
409+ <fileset dir="build/doc/JmolUserGuide_fr">
410+ <include name="**/*.html" />
411+ </fileset>
412+ </copy>
413+ <copy todir="${classes.dir}/org/openscience/jmol/Data" >
414+ <fileset dir="build/doc/JmolHistory">
415+ <include name="**/*.html" />
416+ </fileset>
417+ </copy>
418+ <jar destfile="${jmol.build.dir}/JmolUnsigned.jar"
419+ manifest="manifest/application.txt">
420+ <fileset dir="${classes.dir}" >
421+ <exclude name="**/.*" />
422+ <exclude name="**/*.dx" />
423+ <exclude name="ant/**" />
424+ <include name="com/**" />
425+ <exclude name="**/Test*.class" />
426+ <exclude name="**/jmol/jcamp/**" />
427+ <exclude name="**/jmol/applet/*" />
428+ <exclude name="**/jmol/appletwrapper/*" />
429+ <include name="**/jmol/**" />
430+ <exclude name="**/app/JmolData.class" />
431+ </fileset>
432+ <fileset dir="${appjars.dir}" includes="**/*"/>
433+ <fileset dir="src/org/jmol/translation/Jmol" includes="Messages*.class"/>
434+ </jar>
435+ <signjar jar="${jmol.build.dir}/JmolUnsigned.jar"
436+ signedjar="${jmol.build.dir}/Jmol.jar"
437+ keystore="selfSignedCertificate/selfSignedCertificate.store"
438+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
439+ <!-- to verify that a .jar file is signed: jarsigner -verify foo.jar -->
440+
441+ <delete file="${jmol.build.dir}/JmolUnsigned.jar"/>
442+ <jar destfile="${jmol.build.dir}/JmolUnsignedF.jar"
443+ manifest="manifest/applicationData.txt">
444+ <fileset dir="${classes.dir}" >
445+ <exclude name="**/.*" />
446+ <exclude name="**/*.dx" />
447+ <exclude name="**/Test*.class" />
448+ <exclude name="ant/**" />
449+ <exclude name="com/**" />
450+ <include name="**/jmol/**" />
451+ <exclude name="**/jmol/_documents/**" />
452+ <exclude name="**/jmol/jcamp/**" />
453+ <exclude name="**/jmol/applet/**" />
454+ <exclude name="**/jmol/appletwrapper/**" />
455+ <exclude name="**/jmol/console/**" />
456+ <exclude name="**/jmol/export/**" />
457+ <exclude name="**/jmol/shapebio/**" />
458+ <exclude name="**/jmol/shapespecial/**" />
459+ <exclude name="**/jmol/shapesurface/**" />
460+ <exclude name="**/jmol/popup/**" />
461+ <exclude name="**/openscience/jmol/Data/**" />
462+ <exclude name="**/openscience/jmol/app/Jmol.class" />
463+ <exclude name="**/openscience/jmol/app/images/**" />
464+ <exclude name="**/openscience/jmol/app/jmolpanel/**" />
465+ <exclude name="**/openscience/jmol/app/webexport/**" />
466+ </fileset>
467+ <fileset dir="${appjars.dir}" includes="**/cli/** **/vecmath/**" />
468+ <fileset dir="src/org/jmol/translation/Jmol" includes="Messages*.class"/>
469+ </jar>
470+ <signjar jar="${jmol.build.dir}/JmolUnsignedF.jar"
471+ signedjar="${jmol.build.dir}/JmolData.jar"
472+ keystore="selfSignedCertificate/selfSignedCertificate.store"
473+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
474+ <!-- to verify that a .jar file is signed: jarsigner -verify foo.jar -->
475+
476+ <delete file="${jmol.build.dir}/JmolUnsignedF.jar"/>
477+ <copy todir="${jmol.build.dir}">
478+ <fileset dir=".">
479+ <include name="jmol" />
480+ <include name="jmol.bat" />
481+ <include name="jmol.sh" />
482+ </fileset>
483+ </copy>
484+
485+ <jar destfile="${jmol.build.dir}/JvxlUnsigned.jar"
486+ manifest="manifest/jvxl.txt">
487+ <fileset dir="${classes.dir}" >
488+ <exclude name="**/.*" />
489+ <exclude name="**/*.dx" />
490+ <exclude name="**/Test*.class" />
491+ <include name="org/openscience/jvxl/*" />
492+ <include name="org/jmol/jvxl/**" />
493+ <include name="org/jmol/util/**" />
494+ <include name="org/jmol/g3d/**" />
495+ <include name="org/jmol/api/**" />
496+ <include name="org/jmol/atomdata/**" />
497+ <include name="org/jmol/viewer/JmolConstants.class" />
498+ </fileset>
499+ <fileset dir="${appjars.dir}" includes="**/*"/>
500+ </jar>
501+
502+ <signjar jar="${jmol.build.dir}/JvxlUnsigned.jar"
503+ signedjar="${jmol.build.dir}/Jvxl.jar"
504+ keystore="selfSignedCertificate/selfSignedCertificate.store"
505+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
506+ <delete file="${jmol.build.dir}/JvxlUnsigned.jar"/>
507+
508+ </target>
509+
510+ <target name="apis-jar" id="apis-jar" depends="init,apisio-classes">
511+ <jar destfile="jmolApis.jar">
512+ <fileset dir="${apisio.classes.dir}" >
513+ <include name="org/jmol/api/**" />
514+ </fileset>
515+ <fileset dir="." >
516+ <include name="LICENSE.txt"/>
517+ </fileset>
518+ </jar>
519+ </target>
520+
521+ <target name="io-jar" id="io-jar" depends="init,apisio-classes">
522+ <jar destfile="jmolIO.jar">
523+ <fileset dir="${apisio.classes.dir}" >
524+ <include name="org/jmol/adapter/smarter/**" />
525+ </fileset>
526+ <fileset dir="." >
527+ <include name="LICENSE.txt"/>
528+ </fileset>
529+ </jar>
530+ </target>
531+
532+ <target name="check.appletjars" id="check.appletjars">
533+ <condition property="appletjars.uptodate">
534+ <and>
535+ <uptodate targetfile="${appletjars.dir}">
536+ <srcfiles dir="${lib.dir}"
537+ includes="jmolappletcdk.jar,${vecmath.jar}"/>
538+ </uptodate>
539+ <uptodate targetfile="build/appletjars.timestamp"
540+ srcfile="${appletjars.dir}"/>
541+ </and>
542+ </condition>
543+ </target>
544+
545+ <target name="appletjars" id="appletjars" depends="check.appletjars"
546+ unless="appletjars.uptodate">
547+ <delete file="build/appletjars.timestamp"/>
548+ <delete dir="${appletjars.dir}"/>
549+ <mkdir dir="${appletjars.dir}"/>
550+
551+ <copy todir="${appletjars.dir}" >
552+ <fileset dir="src">
553+ <include name="com/obrador/license.txt" />
554+ </fileset>
555+ </copy>
556+
557+ <unjar dest="${appletjars.dir}" src="${lib.dir}/${vecmath.jar}">
558+ <patternset>
559+ <include name="**/Point3f.class"/>
560+ <include name="**/Vector3f.class"/>
561+ <include name="**/Matrix3f.class"/>
562+ <include name="**/Matrix4f.class"/>
563+ <include name="**/AxisAngle4f.class"/>
564+ <include name="**/Quat4f.class"/>
565+ <include name="**/Point3i.class"/>
566+ <!-- the following are dependencies of the classes above -->
567+ <include name="**/Tuple3i.class"/>
568+ <include name="**/Tuple3f.class"/>
569+ <include name="**/Tuple4f.class"/>
570+ <include name="**/Vector4f.class"/>
571+ <include name="**/Tuple3d.class"/>
572+ <include name="**/Tuple4d.class"/>
573+ <include name="**/Vector3d.class"/>
574+ <include name="**/Quat4d.class"/>
575+ <include name="**/Point4f.class"/>
576+ <include name="**/Point3d.class"/>
577+ <include name="**/Point4d.class"/>
578+ <include name="**/Tuple2d.class"/>
579+ <include name="**/Point2d.class"/>
580+ <include name="**/Matrix3d.class"/>
581+ <include name="**/Matrix4d.class"/>
582+ <include name="**/AxisAngle4d.class"/>
583+ <include name="**/SingularMatrixException.class"/>
584+ </patternset>
585+ </unjar>
586+ <touch file="build/appletjars.timestamp"/>
587+ </target>
588+
589+ <target name="applet-jar" id="applet-jar"
590+ depends="applet-classes,appletjars">
591+ <jar destfile="${jmol.applet.build.dir}/JmolApplet.jar"
592+ manifest="manifest/appletMonolithic.txt" index="true" >
593+ <fileset dir="${applet.classes.dir}" >
594+ <include name="**/*" />
595+ <exclude name="JmolSmiles*" />
596+ <exclude name="org/jmol/export/**/*" />
597+ <exclude name="org/jmol/multitouch/**/*" />
598+ <exclude name="org/openscience/**/*" />
599+ <exclude name="com/sparshui/**/*" />
600+ </fileset>
601+ <fileset dir="${appletjars.dir}" includes="**/*"/>
602+ </jar>
603+
604+ <for list="${all.JmolApplet.languages}" delimiter=","
605+ param="current.Jmol.language">
606+ <sequential>
607+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_i18n_@{current.Jmol.language}.jar"
608+ manifest="manifest/applet_i18n.txt" >
609+ <fileset dir="${applet.classes.dir}">
610+ <include name="org/jmol/translation/JmolApplet/@{current.Jmol.language}/**" />
611+ </fileset>
612+ </jar>
613+ </sequential>
614+ </for>
615+
616+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Minimize.jar" manifest="manifest/applet.txt">
617+ <fileset dir="${applet.classes.dir}">
618+ <include name="org/jmol/minimize/**" />
619+ <include name="org/jmol/modelkit/images/**" />
620+ <include name="org/jmol/modelkit/**" />
621+ </fileset>
622+ </jar>
623+
624+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Console.jar" manifest="manifest/applet.txt">
625+ <fileset dir="${applet.classes.dir}">
626+ <include name="org/jmol/console/**" />
627+ </fileset>
628+ </jar>
629+
630+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Popup.jar" manifest="manifest/applet.txt">
631+ <fileset dir="${applet.classes.dir}">
632+ <include name="org/jmol/popup/**" />
633+ </fileset>
634+ </jar>
635+
636+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersMolXyz.jar" manifest="manifest/applet.txt">
637+ <fileset dir="${applet.classes.dir}">
638+ <include name="org/jmol/adapter/readers/molxyz/**" />
639+ </fileset>
640+ </jar>
641+
642+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersCifPdb.jar" manifest="manifest/applet.txt">
643+ <fileset dir="${applet.classes.dir}">
644+ <include name="org/jmol/adapter/readers/cifpdb/**" />
645+ </fileset>
646+ </jar>
647+
648+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersQuantum.jar" manifest="manifest/applet.txt">
649+ <fileset dir="${applet.classes.dir}">
650+ <include name="org/jmol/adapter/readers/quantum/**" />
651+ <include name="org/jmol/quantum/**" />
652+ </fileset>
653+ </jar>
654+
655+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersMore.jar" manifest="manifest/applet.txt">
656+ <fileset dir="${applet.classes.dir}">
657+ <include name="org/jmol/adapter/readers/more/**" />
658+ </fileset>
659+ </jar>
660+
661+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersSimple.jar" manifest="manifest/applet.txt">
662+ <fileset dir="${applet.classes.dir}">
663+ <include name="org/jmol/adapter/readers/simple/**" />
664+ </fileset>
665+ </jar>
666+
667+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersXtal.jar" manifest="manifest/applet.txt">
668+ <fileset dir="${applet.classes.dir}">
669+ <include name="org/jmol/adapter/readers/xtal/**" />
670+ </fileset>
671+ </jar>
672+
673+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersXml.jar" manifest="manifest/applet.txt">
674+ <fileset dir="${applet.classes.dir}">
675+ <include name="org/jmol/adapter/readers/xml/**" />
676+ </fileset>
677+ </jar>
678+
679+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ShapeBio.jar" manifest="manifest/applet.txt" >
680+ <fileset dir="${applet.classes.dir}">
681+ <include name="org/jmol/modelsetbio/**" />
682+ <include name="org/jmol/shapebio/**" />
683+ </fileset>
684+ </jar>
685+
686+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ShapeSpecial.jar" manifest="manifest/applet.txt" >
687+ <fileset dir="${applet.classes.dir}">
688+ <include name="org/jmol/shapespecial/**" />
689+ </fileset>
690+ </jar>
691+
692+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ShapeSurface.jar" manifest="manifest/applet.txt" >
693+ <fileset dir="${applet.classes.dir}">
694+ <include name="org/jmol/jvxl/**" />
695+ <include name="org/jmol/shapesurface/**" />
696+ </fileset>
697+ </jar>
698+
699+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Smiles.jar" manifest="manifest/applet.txt">
700+ <fileset dir="${applet.classes.dir}">
701+ <include name="org/jmol/smiles/**" />
702+ </fileset>
703+ </jar>
704+
705+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Symmetry.jar" manifest="manifest/applet.txt">
706+ <fileset dir="${applet.classes.dir}">
707+ <include name="org/jmol/symmetry/**" />
708+ </fileset>
709+ </jar>
710+
711+
712+ <!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
713+ <!-- changes to this must be replicated below for the signed applet -->
714+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0.jar"
715+ index="true" >
716+ <!-- javax/vecmath -->
717+ <fileset dir="${appletjars.dir}" includes="**/*"/>
718+ <fileset dir="${applet.classes.dir}">
719+ <include name="org/jmol/appletwrapper/*" />
720+ <include name="JmolApplet*.class" />
721+ <include name="jmol75x29x8.gif" />
722+ <include name="org/jmol/adapter/smarter/**" />
723+ <include name="org/jmol/api/**" />
724+ <include name="org/jmol/applet/**" />
725+ <include name="org/jmol/atomdata/**" />
726+ <include name="org/jmol/bspt/**" />
727+ <include name="org/jmol/g3d/**" />
728+ <include name="org/jmol/geodesic/**" />
729+ <include name="org/jmol/i18n/**" />
730+ <include name="org/jmol/modelset/**" />
731+ <include name="org/jmol/script/**" />
732+ <include name="org/jmol/shape/**" />
733+ <include name="org/jmol/util/**" />
734+ <include name="org/jmol/viewer/**" />
735+ </fileset>
736+
737+ <!-- changes to this must be replicated below for the signed applet -->
738+ <indexjars>
739+ <!-- no export or multitouch here - this is the unsigned applet -->
740+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Console.jar" />
741+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Minimize.jar" />
742+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Popup.jar" />
743+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersCifPdb.jar" />
744+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersMolXyz.jar" />
745+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersMore.jar" />
746+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersQuantum.jar" />
747+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersSimple.jar" />
748+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersXml.jar" />
749+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersXtal.jar" />
750+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ShapeBio.jar" />
751+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ShapeSpecial.jar" />
752+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ShapeSurface.jar" />
753+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Smiles.jar" />
754+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Symmetry.jar" />
755+ <fileset dir="${jmol.applet.build.dir}" includes="JmolApplet0_i18n_*.jar" />
756+ </indexjars>
757+ </jar>
758+ <!-- changes to this must be replicated below for the signed applet -->
759+ <!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
760+
761+ </target>
762+
763+ <target name="signed-applet" id="signed-applet" depends="applet-jar">
764+ <jar destfile="${jmol.applet.build.dir}/JmolAppletSigned.jar.temp"
765+ manifest="manifest/appletMonolithic.txt" index="true" >
766+ <fileset dir="${applet.classes.dir}" >
767+ <include name="**/*" />
768+ <exclude name="JmolSmiles*" />
769+ <exclude name="org/openscience/**/*" />
770+ </fileset>
771+ <fileset dir="${appletjars.dir}" includes="**/*"/>
772+ </jar>
773+ <signjar jar="${jmol.applet.build.dir}/JmolAppletSigned.jar.temp"
774+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned.jar"
775+ keystore="selfSignedCertificate/selfSignedCertificate.store"
776+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
777+ <delete file="${jmol.applet.build.dir}/JmolAppletSigned.jar.temp" />
778+
779+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_Console.jar"
780+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_Console.jar"
781+ keystore="selfSignedCertificate/selfSignedCertificate.store"
782+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
783+
784+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_Minimize.jar"
785+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_Minimize.jar"
786+ keystore="selfSignedCertificate/selfSignedCertificate.store"
787+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
788+
789+ <jar destfile="${jmol.applet.build.dir}/JmolApplet_MultiTouch.jar.temp"
790+ manifest="manifest/appletMonolithic.txt" index="true" >
791+ <fileset dir="${applet.classes.dir}" >
792+ <include name="org/jmol/multitouch/**" />
793+ <include name="com/sparshui/**" />
794+ </fileset>
795+ </jar>
796+ <signjar jar="${jmol.applet.build.dir}/JmolApplet_MultiTouch.jar.temp"
797+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_MultiTouch.jar"
798+ keystore="selfSignedCertificate/selfSignedCertificate.store"
799+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
800+ <delete file="${jmol.applet.build.dir}/JmolApplet_MultiTouch.jar.temp" />
801+
802+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_Popup.jar"
803+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_Popup.jar"
804+ keystore="selfSignedCertificate/selfSignedCertificate.store"
805+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
806+
807+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ReadersCifPdb.jar"
808+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersCifPdb.jar"
809+ keystore="selfSignedCertificate/selfSignedCertificate.store"
810+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
811+
812+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ReadersMolXyz.jar"
813+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersMolXyz.jar"
814+ keystore="selfSignedCertificate/selfSignedCertificate.store"
815+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
816+
817+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ReadersMore.jar"
818+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersMore.jar"
819+ keystore="selfSignedCertificate/selfSignedCertificate.store"
820+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
821+
822+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ReadersQuantum.jar"
823+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersQuantum.jar"
824+ keystore="selfSignedCertificate/selfSignedCertificate.store"
825+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
826+
827+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ReadersSimple.jar"
828+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersSimple.jar"
829+ keystore="selfSignedCertificate/selfSignedCertificate.store"
830+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
831+
832+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ReadersXtal.jar"
833+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersXtal.jar"
834+ keystore="selfSignedCertificate/selfSignedCertificate.store"
835+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
836+
837+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ReadersXml.jar"
838+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersXml.jar"
839+ keystore="selfSignedCertificate/selfSignedCertificate.store"
840+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
841+
842+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ShapeBio.jar"
843+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ShapeBio.jar"
844+ keystore="selfSignedCertificate/selfSignedCertificate.store"
845+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
846+
847+
848+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ShapeSpecial.jar"
849+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ShapeSpecial.jar"
850+ keystore="selfSignedCertificate/selfSignedCertificate.store"
851+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
852+
853+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_ShapeSurface.jar"
854+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_ShapeSurface.jar"
855+ keystore="selfSignedCertificate/selfSignedCertificate.store"
856+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
857+
858+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_Smiles.jar"
859+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_Smiles.jar"
860+ keystore="selfSignedCertificate/selfSignedCertificate.store"
861+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
862+
863+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_Symmetry.jar"
864+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_Symmetry.jar"
865+ keystore="selfSignedCertificate/selfSignedCertificate.store"
866+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
867+
868+ <for list="${all.JmolApplet.languages}" delimiter=","
869+ param="current.Jmol.language">
870+ <sequential>
871+ <signjar jar="${jmol.applet.build.dir}/JmolApplet0_i18n_@{current.Jmol.language}.jar"
872+ signedjar="${jmol.applet.build.dir}/JmolAppletSigned0_i18n_@{current.Jmol.language}.jar"
873+ keystore="selfSignedCertificate/selfSignedCertificate.store"
874+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
875+ </sequential>
876+ </for>
877+
878+ <!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
879+ <!-- this one must be treated specially because of jar indexing
880+ we cannot simply rename the jar file, because the index has
881+ the old name (JmolApplet?.jar) inside it -->
882+ <jar destfile="${jmol.applet.build.dir}/JmolAppletSigned0.jar"
883+ manifest="manifest/applet0.txt"
884+ index="true">
885+ <!-- javax/vecmath -->
886+ <fileset dir="${appletjars.dir}" includes="**/*"/>
887+ <fileset dir="${applet.classes.dir}">
888+ <include name="org/jmol/appletwrapper/*" />
889+ <include name="JmolApplet*.class" />
890+ <include name="jmol75x29x8.gif" />
891+ <include name="org/jmol/adapter/smarter/**" />
892+ <include name="org/jmol/api/**" />
893+ <include name="org/jmol/applet/**" />
894+ <include name="org/jmol/atomdata/**" />
895+ <include name="org/jmol/bspt/**" />
896+ <include name="org/jmol/export/**" />
897+ <include name="org/jmol/g3d/**" />
898+ <include name="org/jmol/geodesic/**" />
899+ <include name="org/jmol/modelset/**" />
900+ <include name="org/jmol/script/**" />
901+ <include name="org/jmol/shape/**" />
902+ <include name="org/jmol/viewer/**" />
903+ <include name="org/jmol/util/**" />
904+ <include name="org/jmol/i18n/**" />
905+ </fileset>
906+ <indexjars>
907+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_Console.jar" />
908+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_Minimize.jar" />
909+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_MultiTouch.jar" />
910+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_Popup.jar" />
911+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersCifPdb.jar" />
912+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersMolXyz.jar" />
913+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersMore.jar" />
914+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersQuantum.jar" />
915+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersSimple.jar" />
916+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersXml.jar" />
917+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ReadersXtal.jar" />
918+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ShapeBio.jar" />
919+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ShapeSpecial.jar" />
920+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_ShapeSurface.jar" />
921+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_Smiles.jar" />
922+ <pathelement path="${jmol.applet.build.dir}/JmolAppletSigned0_Symmetry.jar" />
923+ <fileset dir="${jmol.applet.build.dir}" includes="JmolAppletSigned0_i18n_*.jar" />
924+ </indexjars>
925+ </jar>
926+ <signjar jar="${jmol.applet.build.dir}/JmolAppletSigned0.jar"
927+ keystore="selfSignedCertificate/selfSignedCertificate.store"
928+ storepass="selfSignedCertificate" alias="selfSignedCertificate" />
929+ <!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
930+ </target>
931+
932+ <target name="smiles-applet-jar" id="smiles-applet-jar"
933+ depends="applet-classes">
934+ <jar destfile="${jmol.applet.build.dir}/JmolSmilesApplet.jar"
935+ manifest="manifest/appletSmiles.txt" index="true" >
936+ <fileset dir="${classes.dir}" >
937+ <include name="JmolSmiles.class"/>
938+ </fileset>
939+ <fileset dir="${applet.classes.dir}" >
940+ <include name="JmolSmiles*" />
941+ <include name="org/jmol/smiles/**" />
942+ <include name="org/jmol/api/JmolNode.class" />
943+ <include name="org/jmol/api/JmolEdge.class" />
944+ <include name="org/jmol/api/JmolMolecule.class" />
945+ <include name="org/jmol/api/SmilesMatcherInterface.class" />
946+ <include name="org/jmol/util/Elements.class" />
947+ <include name="org/jmol/util/DefaultLogger.class" />
948+ <include name="org/jmol/util/Logger.class" />
949+ <include name="org/jmol/util/LoggerInterface.class" />
950+ <include name="org/jmol/util/TextFormat.class" />
951+ </fileset>
952+ <fileset dir="${appletjars.dir}">
953+ <include name="javax/vecmath/*3f*" />
954+ <include name="javax/vecmath/*3d*" />
955+ <include name="javax/vecmath/Point4f*" />
956+ <include name="javax/vecmath/Tuple4f*" />
957+ <exclude name="javax/vecmath/Matrix*" />
958+ </fileset>
959+ </jar>
960+
961+ <for list="${all.JmolApplet.languages}" delimiter=","
962+ param="current.Jmol.language">
963+ <sequential>
964+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_i18n_@{current.Jmol.language}.jar"
965+ manifest="manifest/applet_i18n.txt" >
966+ <fileset dir="${applet.classes.dir}">
967+ <include name="org/jmol/translation/JmolApplet/@{current.Jmol.language}/**" />
968+ </fileset>
969+ </jar>
970+ </sequential>
971+ </for>
972+
973+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Minimize.jar" manifest="manifest/applet.txt">
974+ <fileset dir="${applet.classes.dir}">
975+ <include name="org/jmol/minimize/**" />
976+ <include name="org/jmol/modelkit/**" />
977+ <include name="org/jmol/modelkit/images/**" />
978+ </fileset>
979+ </jar>
980+
981+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Console.jar" manifest="manifest/applet.txt">
982+ <fileset dir="${applet.classes.dir}">
983+ <include name="org/jmol/console/**" />
984+ </fileset>
985+ </jar>
986+
987+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Popup.jar" manifest="manifest/applet.txt">
988+ <fileset dir="${applet.classes.dir}">
989+ <include name="org/jmol/popup/**" />
990+ </fileset>
991+ </jar>
992+
993+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersMolXyz.jar" manifest="manifest/applet.txt">
994+ <fileset dir="${applet.classes.dir}">
995+ <include name="org/jmol/adapter/readers/molxyz/**" />
996+ </fileset>
997+ </jar>
998+
999+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersCifPdb.jar" manifest="manifest/applet.txt">
1000+ <fileset dir="${applet.classes.dir}">
1001+ <include name="org/jmol/adapter/readers/cifpdb/**" />
1002+ </fileset>
1003+ </jar>
1004+
1005+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersQuantum.jar" manifest="manifest/applet.txt">
1006+ <fileset dir="${applet.classes.dir}">
1007+ <include name="org/jmol/adapter/readers/quantum/**" />
1008+ <include name="org/jmol/quantum/**" />
1009+ </fileset>
1010+ </jar>
1011+
1012+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersMore.jar" manifest="manifest/applet.txt">
1013+ <fileset dir="${applet.classes.dir}">
1014+ <include name="org/jmol/adapter/readers/more/**" />
1015+ </fileset>
1016+ </jar>
1017+
1018+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersSimple.jar" manifest="manifest/applet.txt">
1019+ <fileset dir="${applet.classes.dir}">
1020+ <include name="org/jmol/adapter/readers/simple/**" />
1021+ </fileset>
1022+ </jar>
1023+
1024+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersXtal.jar" manifest="manifest/applet.txt">
1025+ <fileset dir="${applet.classes.dir}">
1026+ <include name="org/jmol/adapter/readers/xtal/**" />
1027+ </fileset>
1028+ </jar>
1029+
1030+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ReadersXml.jar" manifest="manifest/applet.txt">
1031+ <fileset dir="${applet.classes.dir}">
1032+ <include name="org/jmol/adapter/readers/xml/**" />
1033+ </fileset>
1034+ </jar>
1035+
1036+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ShapeBio.jar" manifest="manifest/applet.txt" >
1037+ <fileset dir="${applet.classes.dir}">
1038+ <include name="org/jmol/modelsetbio/**" />
1039+ <include name="org/jmol/shapebio/**" />
1040+ </fileset>
1041+ </jar>
1042+
1043+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ShapeSpecial.jar" manifest="manifest/applet.txt" >
1044+ <fileset dir="${applet.classes.dir}">
1045+ <include name="org/jmol/shapespecial/**" />
1046+ </fileset>
1047+ </jar>
1048+
1049+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_ShapeSurface.jar" manifest="manifest/applet.txt" >
1050+ <fileset dir="${applet.classes.dir}">
1051+ <include name="org/jmol/jvxl/**" />
1052+ <include name="org/jmol/shapesurface/**" />
1053+ </fileset>
1054+ </jar>
1055+
1056+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Smiles.jar" manifest="manifest/applet.txt">
1057+ <fileset dir="${applet.classes.dir}">
1058+ <include name="org/jmol/smiles/**" />
1059+ </fileset>
1060+ </jar>
1061+
1062+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0_Symmetry.jar" manifest="manifest/applet.txt">
1063+ <fileset dir="${applet.classes.dir}">
1064+ <include name="org/jmol/symmetry/**" />
1065+ </fileset>
1066+ </jar>
1067+
1068+
1069+ <!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
1070+ <!-- changes to this must be replicated below for the signed applet -->
1071+ <jar destfile="${jmol.applet.build.dir}/JmolApplet0.jar"
1072+ index="true" >
1073+ <!-- javax/vecmath -->
1074+ <fileset dir="${appletjars.dir}" includes="**/*"/>
1075+ <fileset dir="${applet.classes.dir}">
1076+ <include name="org/jmol/appletwrapper/*" />
1077+ <include name="JmolApplet*.class" />
1078+ <include name="jmol75x29x8.gif" />
1079+ <include name="org/jmol/adapter/smarter/**" />
1080+ <include name="org/jmol/api/**" />
1081+ <include name="org/jmol/applet/**" />
1082+ <include name="org/jmol/atomdata/**" />
1083+ <include name="org/jmol/bspt/**" />
1084+ <include name="org/jmol/g3d/**" />
1085+ <include name="org/jmol/geodesic/**" />
1086+ <include name="org/jmol/i18n/**" />
1087+ <include name="org/jmol/modelset/**" />
1088+ <include name="org/jmol/script/**" />
1089+ <include name="org/jmol/shape/**" />
1090+ <include name="org/jmol/util/**" />
1091+ <include name="org/jmol/viewer/**" />
1092+ </fileset>
1093+
1094+ <!-- changes to this must be replicated below for the signed applet -->
1095+ <indexjars>
1096+ <!-- no export or multitouch here - this is the unsigned applet -->
1097+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Console.jar" />
1098+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Minimize.jar" />
1099+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Popup.jar" />
1100+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersCifPdb.jar" />
1101+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersMolXyz.jar" />
1102+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersMore.jar" />
1103+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersQuantum.jar" />
1104+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersSimple.jar" />
1105+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersXml.jar" />
1106+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ReadersXtal.jar" />
1107+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ShapeBio.jar" />
1108+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ShapeSpecial.jar" />
1109+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_ShapeSurface.jar" />
1110+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Smiles.jar" />
1111+ <pathelement path="${jmol.applet.build.dir}/JmolApplet0_Symmetry.jar" />
1112+ <fileset dir="${jmol.applet.build.dir}" includes="JmolApplet0_i18n_*.jar" />
1113+ </indexjars>
1114+ </jar>
1115+ <!-- changes to this must be replicated below for the signed applet -->
1116+ <!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
1117+
1118+ </target>
1119+
1120+ <target name="dist" id="dist"
1121+ depends="doc,main-i18n,main,signed-applet">
1122+ <!-- first build binary distribution -->
1123+ <delete dir="build/dist/jmol-${version}"/>
1124+ <mkdir dir="build/dist/jmol-${version}"/>
1125+ <copy todir="build/dist/jmol-${version}" >
1126+ <fileset dir="${jmol.applet.build.dir}">
1127+ <include name="JmolApplet*.jar" />
1128+ </fileset>
1129+ <fileset dir="${jmol.build.dir}">
1130+ <include name="Jmol.jar" />
1131+ <include name="JmolData.jar" />
1132+ <include name="JmolSmiles.jar" />
1133+ </fileset>
1134+ <fileset dir=".">
1135+ <include name="jmol" />
1136+ <include name="jmol.sh" />
1137+ <include name="jmol.mac" />
1138+ <include name="jmol.bat" />
1139+ <include name="*.txt" />
1140+ </fileset>
1141+ </copy>
1142+ <copy file="src/org/jmol/viewer/Jmol.properties" tofile="build/dist/jmol-${version}/CHANGES.txt" />
1143+ <chmod perm="ugo+rx">
1144+ <fileset dir="build/dist/jmol-${version}">
1145+ <include name="jmol"/>
1146+ <include name="jmol.sh"/>
1147+ <include name="jmol.bat"/>
1148+ </fileset>
1149+ </chmod>
1150+
1151+ <copy todir="build/dist/jmol-${version}" >
1152+ <fileset dir="./appletweb">
1153+ <include name="Jmol.js" />
1154+ </fileset>
1155+ </copy>
1156+
1157+ <!--
1158+ zip distributions to not retain file permissions ...
1159+ miguel 2 feb 2006 but there have been requests for them anyway -->
1160+
1161+ <zip zipfile="build/dist/jmol-${version}-binary.zip" basedir="build/dist"
1162+ includes="jmol-${version}/**" />
1163+
1164+ <tar tarfile="build/dist/jmol-${version}-binary.tar.gz"
1165+ compression="gzip" >
1166+ <tarfileset dir="build/dist"
1167+ excludes="*/jmol,*/jmol.sh"
1168+ includes="jmol-${version}/**" />
1169+ <tarfileset dir="build/dist"
1170+ mode="755"
1171+ includes="*/jmol,*/jmol.sh" />
1172+ </tar>
1173+
1174+ <!-- then build source distribution -->
1175+
1176+ <copy todir="build/dist/jmol-${version}" >
1177+ <fileset dir=".">
1178+ <include name="applet.classes" />
1179+ <include name="build.xml" />
1180+ <include name="build-i18n.xml" />
1181+ </fileset>
1182+ </copy>
1183+
1184+ <copy todir="build/dist/jmol-${version}/src" >
1185+ <fileset dir="src" />
1186+ </copy>
1187+
1188+ <copy todir="build/dist/jmol-${version}/${lib.dir}" >
1189+ <fileset dir="${lib.dir}" />
1190+ </copy>
1191+
1192+ <copy todir="build/dist/jmol-${version}/${plugin.dir}" >
1193+ <fileset dir="${plugin.dir}" />
1194+ </copy>
1195+
1196+ <copy todir="build/dist/jmol-${version}/appletweb" >
1197+ <fileset dir="appletweb" />
1198+ </copy>
1199+
1200+ <copy todir="build/dist/jmol-${version}/manifest" >
1201+ <fileset dir="manifest" />
1202+ </copy>
1203+
1204+ <copy todir="build/dist/jmol-${version}/doc" >
1205+ <fileset dir="doc" />
1206+ </copy>
1207+
1208+ <copy todir="build/dist/jmol-${version}/tools" >
1209+ <fileset dir="tools" />
1210+ </copy>
1211+
1212+ <!-- Jvxl -->
1213+ <copy file="build/Jvxl.jar" tofile="build/dist/Jvxl-${jvxl_version}.jar" failonerror="false" />
1214+
1215+ <copy file="build/doc/JmolDevelopersGuide.html"
1216+ tofile="build/dist/jmol-${version}/doc/JmolDevelopersGuide.html" />
1217+ <copy file="build/doc/JmolHistory/ChangeLog.html"
1218+ tofile="build/dist/jmol-${version}/ChangeLog.html" />
1219+ <copy todir="build/dist/jmol-${version}/doc/JmolUserGuide">
1220+ <fileset dir="build/doc/JmolUserGuide">
1221+ <include name="**/*.html" />
1222+ </fileset>
1223+ </copy>
1224+ <copy file="build/doc/JmolAppletGuide.html"
1225+ tofile="build/dist/jmol-${version}/doc/JmolAppletGuide.html" />
1226+
1227+<!--
1228+ zip distributions to not retain file permissions
1229+ <zip zipfile="build/dist/jmol-${version}-full.zip" basedir="build/dist"
1230+ includes="jmol-${version}/**" />
1231+ -->
1232+
1233+ <tar tarfile="build/dist/jmol-${version}-full.tar.gz"
1234+ compression="gzip" >
1235+ <tarfileset dir="build/dist"
1236+ excludes="*/jmol,*/jmol.sh"
1237+ includes="jmol-${version}/**" />
1238+ <tarfileset dir="build/dist"
1239+ mode="755"
1240+ includes="*/jmol,*/jmol.sh" />
1241+ </tar>
1242+ </target>
1243+
1244+ <target name="apisio-dist" id="apisio-dist"
1245+ depends="apis-jar,io-jar">
1246+ <!-- first build binary distribution -->
1247+ <delete dir="build/dist/jmolapisio-${version}"/>
1248+ <mkdir dir="build/dist/jmolapisio-${version}"/>
1249+ <copy todir="build/dist/jmolapisio-${version}" >
1250+ <fileset dir=".">
1251+ <include name="jmolApis.jar" />
1252+ <include name="jmolIO.jar" />
1253+ <include name="*.txt" />
1254+ </fileset>
1255+ </copy>
1256+
1257+ <!-- build source distribution -->
1258+
1259+ <copy todir="build/dist/jmolapisio-${version}" >
1260+ <fileset dir=".">
1261+ <include name="apisio.classes" />
1262+ <include name="build.xml" />
1263+ <include name="build-i18n.xml" />
1264+ </fileset>
1265+ </copy>
1266+
1267+ <copy todir="build/dist/jmolapisio-${version}/src" >
1268+ <fileset dir="src">
1269+ <includesfile name="apisio.classes"/>
1270+ </fileset>
1271+ </copy>
1272+
1273+ <copy todir="build/dist/jmolapisio-${version}/${lib.dir}" >
1274+ <fileset dir="${lib.dir}">
1275+ <include name="${vecmath.jar}"/>
1276+ <include name="netscape.jar"/>
1277+ </fileset>
1278+ </copy>
1279+
1280+ <tar tarfile="build/dist/jmolapisio-${version}.tar.gz"
1281+ compression="gzip" >
1282+ <tarfileset dir="build/dist"
1283+ excludes="*/jmol,*/jmol.sh"
1284+ includes="jmolapisio-${version}/**" />
1285+ </tar>
1286+ </target>
1287+
1288+ <target name="check.jws" id="check.jws" depends="setup" unless="keystore.present" >
1289+ <echo message="Keystore '${keystore.name}' not found." />
1290+ <echo message="Please set with the argument '-Dkeystore.name=file'." />
1291+ <antcall target="initFailure" />
1292+ </target>
1293+
1294+ <target name="dist-jws" id="dist-jws" depends="check.jws,dist" >
1295+ <copy todir="build/dist/jmol-jws-${version}" >
1296+ <fileset dir="src">
1297+ <include name="jmol.jnlp" />
1298+ </fileset>
1299+ </copy>
1300+ <mkdir dir="build/dist/jmol-jws-${version}/${lib.dir}" />
1301+ <copy todir="build/dist/jmol-jws-${version}/${lib.dir}" >
1302+ <fileset dir="${lib.dir}">
1303+ <include name="*.jar" />
1304+ <exclude name="junit.jar" />
1305+ <exclude name="saxon.jar" />
1306+ </fileset>
1307+ </copy>
1308+ <mkdir dir="build/dist/jmol-jws-${version}/images" />
1309+ <copy todir="build/dist/jmol-jws-${version}/images" flatten="yes" >
1310+ <fileset dir="src">
1311+ <include name="**/icon.jpg" />
1312+ </fileset>
1313+ </copy>
1314+ <ant antfile="../../../build.xml" dir="build/dist/jmol-jws-${version}"
1315+ target="internal-dist-jws-sign" />
1316+ </target>
1317+
1318+ <!--
1319+ This target should be only used internally within the build.xml. It is a
1320+ workaround for a bugs in the fileset feature of the signjar task. See bugs
1321+ 5230 and 6988.
1322+ -->
1323+ <target name="internal-dist-jws-sign" id="internal-dist-jws-sign">
1324+ <signjar alias="${keystore.alias}"
1325+ storepass="${keystore.password}"
1326+ keystore="${keystore.name}" >
1327+ <fileset dir="../jmol-jws-${version}">
1328+ <include name="**/*.jar" />
1329+ <exclude name="**/.AppleDouble/**" />
1330+ </fileset>
1331+ </signjar>
1332+ </target>
1333+
1334+ <target name="clean" id="clean">
1335+ <delete dir="${classes.dir}"/>
1336+ <delete dir="${applet.classes.dir}"/>
1337+ <delete dir="${apisio.classes.dir}"/>
1338+ <delete dir="${test-classes.dir}"/>
1339+ <delete dir="${appjars.dir}"/>
1340+ <delete dir="${appletjars.dir}"/>
1341+ <delete dir="build/dist"/>
1342+ <delete>
1343+ <fileset dir=".">
1344+ <include name="Jmol.jar" />
1345+ <include name="JmolData.jar" />
1346+ <include name="JmolSmiles.jar" />
1347+ <include name="JmolApplet*.jar" />
1348+ <include name="${jmol.build.dir}/Jmol.jar" />
1349+ <include name="${jmol.applet.build.dir}/JmolApplet*.jar" />
1350+ <include name="${jmol.build.dir}/JmolData.jar" />
1351+ <include name="${jmol.build.dir}/JmolSmiles.jar" />
1352+ </fileset>
1353+ </delete>
1354+ </target>
1355+
1356+ <target name="xclean" id="xclean">
1357+ </target>
1358+
1359+ <target name="spotless" id="spotless" depends="clean,spotless-i18n">
1360+ <delete dir="build"/>
1361+ <delete dir="${javadoc.dir}"/>
1362+ <delete dir="packaging/rpm/dist"/>
1363+ </target>
1364+
1365+ <target name="run" id="run" depends="main">
1366+ <java fork="true" jar="${jmol.build.dir}/Jmol.jar" />
1367+ </target>
1368+
1369+ <!-- ********************************
1370+ Documentation Targets
1371+ ******************************** -->
1372+ <target name="doc" id="doc"
1373+ depends="jmolGuide,jmolDevelopersGuide,jmolAppletGuide,jmolHistory,javadoc"/>
1374+
1375+ <target name="initdoc" depends="init,check.docbook-xml,check.docbook-xsl,check.xsl" />
1376+
1377+ <target name="check.docbook-xsl" depends="setup" unless="docbook-xsl.uptodate" >
1378+ <delete file="build/${docbook-xsl}.timestamp" />
1379+ <delete dir="build/${docbook-xsl}" />
1380+ <mkdir dir="build/${docbook-xsl}" />
1381+ <untar src="doc/${docbook-xsl}.tar.gz" dest="build"
1382+ compression="gzip" />
1383+ <touch file="build/${docbook-xsl}.timestamp" />
1384+ </target>
1385+
1386+ <target name="check.docbook-xml" depends="setup" unless="docbook-xml.uptodate" >
1387+ <delete file="build/docbook-xml.timestamp" />
1388+ <delete dir="build/docbook-xml" />
1389+ <mkdir dir="build/docbook-xml" />
1390+ <unzip src="doc/${docbook-xml}.zip" dest="build/docbook-xml" />
1391+ <touch file="build/docbook-xml.timestamp" />
1392+ </target>
1393+
1394+ <target name="check.xsl" depends="setup" unless="xsl.available" >
1395+ <echo message="XSLT class 'com.icl.saxon.StyleSheet' not found." />
1396+ <echo message="Note that the documentation is NOT generated now." />
1397+ </target>
1398+
1399+ <target name="javadoc" depends="initdoc" unless="javadoc.uptodate">
1400+ <mkdir dir="${javadoc.dir}"/>
1401+ <javadoc destdir="${javadoc.dir}" sourcepath="src"
1402+ private="true"
1403+ packagenames="org.openscience.*,org.jmol.*"
1404+ excludepackagenames="org.jmol.jcamp.*">
1405+ <classpath refid="project.class.path" />
1406+ <link href="http://download.oracle.com/javase/6/docs/api/" />
1407+ <link href="http://download.java.net/media/java3d/javadoc/1.5.0/" />
1408+ </javadoc>
1409+ </target>
1410+
1411+ <target name="jmolGuide" id="jmolGuide" depends="initdoc"
1412+ unless="jmolGuide.uptodate" >
1413+ <echo message="Generating user's guide" />
1414+ <mkdir dir="build/doc/JmolUserGuide" />
1415+ <java fork="true" dir="build/doc/JmolUserGuide"
1416+ classname="com.icl.saxon.StyleSheet"
1417+ classpath="${lib.dir}/saxon.jar" >
1418+ <jvmarg value="${proxyHost}" />
1419+ <jvmarg value="${proxyPort}" />
1420+ <arg value="../../../doc/source/JmolGuide.docbook.xml" />
1421+ <arg value="../../${docbook-xsl}/html/chunk.xsl" />
1422+ </java>
1423+ <echo message="Generating user's guide (fr)" />
1424+ <mkdir dir="build/doc/JmolUserGuide_fr" />
1425+ <java fork="true" dir="build/doc/JmolUserGuide_fr"
1426+ classname="com.icl.saxon.StyleSheet"
1427+ classpath="${lib.dir}/saxon.jar" >
1428+ <jvmarg value="${proxyHost}" />
1429+ <jvmarg value="${proxyPort}" />
1430+ <arg value="../../../doc/source/JmolGuide_fr.docbook.xml" />
1431+ <arg value="../../${docbook-xsl}/html/chunk.xsl" />
1432+ </java>
1433+ </target>
1434+
1435+ <target name="jmolHistory" id="jmolHistory"
1436+ depends="initdoc" unless="jmolHistory.uptodate" >
1437+ <echo message="Generating history of changes" />
1438+ <mkdir dir="build/doc/JmolHistory" />
1439+ <java fork="true" dir="build/doc/JmolHistory"
1440+ classname="com.icl.saxon.StyleSheet"
1441+ classpath="${lib.dir}/saxon.jar" >
1442+ <arg value="-o" />
1443+ <arg value="ChangeLog.html" />
1444+ <arg value="../../../doc/source/JmolHistory.xml" />
1445+ <arg value="../../../doc/source/JmolHistoryToHtml.xsl" />
1446+ </java>
1447+ <echo message="Generating history of changes (fr)" />
1448+ <java fork="true" dir="build/doc/JmolHistory"
1449+ classname="com.icl.saxon.StyleSheet"
1450+ classpath="${lib.dir}/saxon.jar" >
1451+ <arg value="-o" />
1452+ <arg value="ChangeLog_fr.html" />
1453+ <arg value="../../../doc/source/JmolHistory_fr.xml" />
1454+ <arg value="../../../doc/source/JmolHistoryToHtml.xsl" />
1455+ <arg value="lang=fr" />
1456+ </java>
1457+ <echo message="Generating history of changes (nl)" />
1458+ <java fork="true" dir="build/doc/JmolHistory"
1459+ classname="com.icl.saxon.StyleSheet"
1460+ classpath="${lib.dir}/saxon.jar" >
1461+ <arg value="-o" />
1462+ <arg value="ChangeLog_nl.html" />
1463+ <arg value="../../../doc/source/JmolHistory_nl.xml" />
1464+ <arg value="../../../doc/source/JmolHistoryToHtml.xsl" />
1465+ <arg value="lang=nl" />
1466+ </java>
1467+ </target>
1468+
1469+ <target name="jmolDevelopersGuide" id="jmolDevelopersGuide"
1470+ depends="initdoc" unless="jmolDevelopersGuide.uptodate" >
1471+ <echo message="Generating developer's guide" />
1472+ <java fork="true" dir="build/doc"
1473+ classname="com.icl.saxon.StyleSheet"
1474+ classpath="${lib.dir}/saxon.jar" >
1475+ <arg value="-o" />
1476+ <arg value="JmolDevelopersGuide.html" />
1477+ <arg value="../../doc/source/JmolDevelopersGuide.docbook.xml" />
1478+ <arg value="../${docbook-xsl}/html/docbook.xsl" />
1479+ </java>
1480+ <echo message="Generating developer's guide (fr)" />
1481+ <java fork="true" dir="build/doc"
1482+ classname="com.icl.saxon.StyleSheet"
1483+ classpath="${lib.dir}/saxon.jar" >
1484+ <arg value="-o" />
1485+ <arg value="JmolDevelopersGuide_fr.html" />
1486+ <arg value="../../doc/source/JmolDevelopersGuide_fr.docbook.xml" />
1487+ <arg value="../${docbook-xsl}/html/docbook.xsl" />
1488+ </java>
1489+ <echo message="Generating developer's guide (de)" />
1490+ <java fork="true" dir="build/doc"
1491+ classname="com.icl.saxon.StyleSheet"
1492+ classpath="${lib.dir}/saxon.jar" >
1493+ <arg value="-o" />
1494+ <arg value="JmolDevelopersGuide_de.html" />
1495+ <arg value="../../doc/source/JmolDevelopersGuide_de.docbook.xml" />
1496+ <arg value="../${docbook-xsl}/html/docbook.xsl" />
1497+ </java>
1498+ </target>
1499+
1500+ <target name="jmolAppletGuide" id="jmolAppletGuide" depends="initdoc"
1501+ unless="jmolAppletGuide.uptodate" >
1502+ <echo message="Generating applet guide" />
1503+ <java fork="true" dir="build/doc"
1504+ classname="com.icl.saxon.StyleSheet"
1505+ classpath="${lib.dir}/saxon.jar" >
1506+ <arg value="-o" />
1507+ <arg value="JmolAppletGuide.html" />
1508+ <arg value="../../doc/source/JmolAppletGuide.docbook.xml" />
1509+ <arg value="../${docbook-xsl}/html/docbook.xsl" />
1510+ </java>
1511+ <echo message="Generating applet guide (fr)" />
1512+ <java fork="true" dir="build/doc"
1513+ classname="com.icl.saxon.StyleSheet"
1514+ classpath="${lib.dir}/saxon.jar" >
1515+ <arg value="-o" />
1516+ <arg value="JmolAppletGuide_fr.html" />
1517+ <arg value="../../doc/source/JmolAppletGuide_fr.docbook.xml" />
1518+ <arg value="../${docbook-xsl}/html/docbook.xsl" />
1519+ </java>
1520+ <echo message="Generating applet guide (de)" />
1521+ <java fork="true" dir="build/doc"
1522+ classname="com.icl.saxon.StyleSheet"
1523+ classpath="${lib.dir}/saxon.jar" >
1524+ <arg value="-o" />
1525+ <arg value="JmolAppletGuide_de.html" />
1526+ <arg value="../../doc/source/JmolAppletGuide_de.docbook.xml" />
1527+ <arg value="../${docbook-xsl}/html/docbook.xsl" />
1528+ </java>
1529+ </target>
1530+
1531+ <target name="test" id="test" depends="main,compile-tests">
1532+ <junit printsummary="yes" haltonfailure="yes">
1533+ <classpath>
1534+ <pathelement location="${jmol.build.dir}/Jmol.jar" />
1535+ <pathelement location="${tests.dir}/Tests.jar" />
1536+ <pathelement location="./jars/junit.jar" />
1537+ </classpath>
1538+ <formatter type="plain" usefile="false" />
1539+ <!-- <batchtest>
1540+ <fileset dir="test" />
1541+ </batchtest> -->
1542+ <test name="org.jmol.AllTests" />
1543+ </junit>
1544+ </target>
1545+
1546+ <target name="compile-tests" id="compile-tests" depends="main">
1547+ <mkdir dir="${test-classes.dir}"/>
1548+ <javac srcdir="test" destdir="${test-classes.dir}"
1549+ debug="off" deprecation="on"
1550+ optimize="off" source="1.5">
1551+ <classpath>
1552+ <pathelement location="${jmol.build.dir}/Jmol.jar" />
1553+ <pathelement location="./jars/junit.jar" />
1554+ </classpath>
1555+ </javac>
1556+ <mkdir dir="${tests.dir}"/>
1557+ <jar destfile="${tests.dir}/Tests.jar" basedir="${test-classes.dir}" />
1558+ </target>
1559+
1560+ <!-- i18n stuff -->
1561+ <target name="main-i18n" depends="classes">
1562+ <ant antfile="tools/build-i18n.xml" target="main-i18n"/>
1563+ </target>
1564+ <target name="spotless-i18n">
1565+ <ant antfile="tools/build-i18n.xml" target="spotless-i18n"/>
1566+ </target>
1567+
1568+</project>
1569
1570=== modified file 'build.xml'
1571--- build.xml 2011-04-11 22:04:43 +0000
1572+++ build.xml 2011-09-15 11:23:35 +0000
1573@@ -57,12 +57,18 @@
1574 <fileset dir="${lib.dir}">
1575 <include name="*.jar" />
1576 </fileset>
1577+ <fileset dir="/usr/share/icedtea-web/">
1578+ <include name="plugin.jar"/>
1579+ </fileset>
1580 </path>
1581
1582 <path id="applet-project.class.path">
1583 <fileset dir="${lib.dir}">
1584 <include name="*.jar" />
1585 </fileset>
1586+ <fileset dir="/usr/share/icedtea-web/">
1587+ <include name="plugin.jar"/>
1588+ </fileset>
1589 </path>
1590
1591 <path id="apisio-project.class.path">
1592
1593=== modified file 'debian/changelog'
1594--- debian/changelog 2011-04-11 22:04:43 +0000
1595+++ debian/changelog 2011-09-15 11:23:35 +0000
1596@@ -1,3 +1,12 @@
1597+jmol (12.0.40-1ubuntu1) oneiric; urgency=low
1598+
1599+ * Fix FTBFS (LP: #831372):
1600+ - d/control: added icedtea6-plugin to Build-Depends
1601+ - d/patches/fix-icedtea-web-plugin.patch: patch build.xml to pickup
1602+ plugin.jar from icedtea6-plugin.
1603+
1604+ -- James Page <james.page@ubuntu.com> Thu, 15 Sep 2011 11:58:34 +0100
1605+
1606 jmol (12.0.40-1) unstable; urgency=low
1607
1608 * New upstream release.
1609
1610=== modified file 'debian/control'
1611--- debian/control 2011-04-11 22:04:43 +0000
1612+++ debian/control 2011-09-15 11:23:35 +0000
1613@@ -1,9 +1,10 @@
1614 Source: jmol
1615 Section: science
1616 Priority: optional
1617-Maintainer: Debichem Team <debichem-devel@lists.alioth.debian.org>
1618+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
1619+XSBC-Original-Maintainer: Debichem Team <debichem-devel@lists.alioth.debian.org>
1620 Uploaders: Michael Banck <mbanck@debian.org>
1621-Build-Depends: debhelper (>= 7.0.0), javahelper, quilt, docbook-xml (>= 4.2), docbook-xsl (>= 1.66), xsltproc, default-jdk, ant, ant-contrib, libcommons-cli-java, libjaxp1.3-java, libsaxon-java, libvecmath-java, libitext1-java
1622+Build-Depends: debhelper (>= 7.0.0), javahelper, quilt, docbook-xml (>= 4.2), docbook-xsl (>= 1.66), xsltproc, default-jdk, ant, ant-contrib, libcommons-cli-java, libjaxp1.3-java, libsaxon-java, libvecmath-java, libitext1-java, icedtea6-plugin
1623 Standards-Version: 3.9.1
1624 Homepage: http://jmol.sourceforge.net/
1625 XS-Vcs-Browser: http://svn.debian.org/wsvn/debichem/
1626
1627=== added file 'debian/patches/fix-icedtea-web-plugin.patch'
1628--- debian/patches/fix-icedtea-web-plugin.patch 1970-01-01 00:00:00 +0000
1629+++ debian/patches/fix-icedtea-web-plugin.patch 2011-09-15 11:23:35 +0000
1630@@ -0,0 +1,27 @@
1631+Description: Ensure icedtea6 plugin.jar is picked up during build.
1632+Author: James Page <james.page@ubuntu.com>
1633+Forwarded: not-needed
1634+
1635+Index: jmol/build.xml
1636+===================================================================
1637+--- jmol.orig/build.xml 2011-09-15 12:01:12.736742142 +0100
1638++++ jmol/build.xml 2011-09-15 12:11:06.818499966 +0100
1639+@@ -57,12 +57,18 @@
1640+ <fileset dir="${lib.dir}">
1641+ <include name="*.jar" />
1642+ </fileset>
1643++ <fileset dir="/usr/share/icedtea-web/">
1644++ <include name="plugin.jar"/>
1645++ </fileset>
1646+ </path>
1647+
1648+ <path id="applet-project.class.path">
1649+ <fileset dir="${lib.dir}">
1650+ <include name="*.jar" />
1651+ </fileset>
1652++ <fileset dir="/usr/share/icedtea-web/">
1653++ <include name="plugin.jar"/>
1654++ </fileset>
1655+ </path>
1656+
1657+ <path id="apisio-project.class.path">
1658
1659=== modified file 'debian/patches/series'
1660--- debian/patches/series 2011-04-11 22:04:43 +0000
1661+++ debian/patches/series 2011-09-15 11:23:35 +0000
1662@@ -3,3 +3,4 @@
1663 chime2jmol_binary.patch
1664 right_cgi_diretory.patch
1665 cgi_fix_shebang.patch
1666+fix-icedtea-web-plugin.patch

Subscribers

People subscribed via source and target branches

to all changes: