Skip to content
Newer
Older
100755 276 lines (213 sloc) 10 KB
c3ba50b Added Log4J configuration file.
egonw authored
1 <project name="CDK" default="compile" basedir=".">
3d221c1 Added additional PDBReader tests.
yeldar authored
2
52caaaf Separated cdk source from libraries. Two distributions are now genera…
egonw authored
3 <property name="build.compiler" value="modern" />
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
4 <property name="build" value="build" />
5 <property name="sourcedist" value="sourcedist" />
6 <property name="dist" value="dist" />
7 <property name="src.tests"
e55314e - Removed replaced lib-dist target.
egonw authored
8 value="org/openscience/cdk/test" />
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
9
10 <property name="reports.tests" value="reports" />
11 <property name="javadoc.dir" value="javadoc" />
12
943daec Location of Java3D classes is now settable. If Java3D is not installe…
egonw authored
13 <property name="pathtojava3d" value="" />
14
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
15 <path id="project.class.path">
16 <pathelement
17 location="/usr/lib/j2sdk1.3/jre/lib/rt.jar" />
18
19 <pathelement location="." />
20
21 <fileset dir="jar">
22 <include name="*.jar" />
23 </fileset>
943daec Location of Java3D classes is now settable. If Java3D is not installe…
egonw authored
24
25 <fileset dir="${pathtojava3d}">
26 <include name="*.jar" />
27 </fileset>
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
28 </path>
29
30 <target name="init">
31 <tstamp />
32
33 <mkdir dir="${build}" />
34 <mkdir dir="${sourcedist}" />
35 <mkdir dir="${dist}" />
36 <mkdir dir="${reports.tests}" />
37 </target>
38
39 <target name="clean">
40 <delete>
41 <fileset dir="." includes="**/*~" />
42 <fileset dir="." includes="**/*.class" />
43 <fileset dir="." includes="*.tar.gz" />
44 <fileset dir="." includes="*.zip" />
45 </delete>
46
47 <delete dir="${build}" />
48 <delete dir="${sourcedist}" />
49 <delete dir="${reports.tests}" />
50 </target>
51
52 <target name="compile" depends="init">
53 <echo
54 message="Compiling only the classes that don't use Java3d." />
55
56 <echo
57 message="Use 'compile-with-java3d' target for full Java3D support. " />
58
59 <mkdir dir="${build}" />
60
ba9dadc RandomGenerator now finally working
steinbeck authored
61 <javac destdir="${build}" optimize="off" debug="on" deprecation="off">
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
62 <src path="." />
63
e55314e - Removed replaced lib-dist target.
egonw authored
64 <exclude name="${sourcedist}/**" />
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
65 <exclude
66 name="org/openscience/cdk/renderer/AcceleratedRenderer3D*" />
67 <exclude
68 name="org/openscience/cdk/renderer/OrbitalsRenderer3D*" />
69 <exclude
70 name="org/openscience/cdk/test/AcceleratedRenderer3DTest.java" />
71 <exclude
72 name="org/openscience/cdk/test/OrbitalsRenderer3DTest.java" />
e1f7ebb Do not try to build classes that depend on classes that depend on Java3D
egonw authored
73 <exclude
74 name="org/openscience/cdk/test/VisualGaussiansCalculationTest.java" />
75 <exclude
76 name="org/openscience/cdk/test/ZMatrixReaderTest.java" />
77
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
78 <classpath refid="project.class.path" />
79 </javac>
80
81 <copy todir="${build}">
82 <fileset dir="." includes="**/Test-*" />
83 </copy>
84 </target>
85
86 <target name="compile-with-java3d" depends="init">
87 <mkdir dir="${build}" />
88
aa6535c Don't compile java source files in ${sourcedist} with java3D too.
egonw authored
89 <javac destdir="${build}" optimize="on" deprecation="off">
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
90 <src path="." />
91
aa6535c Don't compile java source files in ${sourcedist} with java3D too.
egonw authored
92 <exclude name="${sourcedist}/**" />
93
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
94 <classpath refid="project.class.path" />
95 </javac>
96 </target>
97
98 <target name="dist" depends="compile">
99 <mkdir dir="${dist}/jar" />
100
101 <mkdir
102 dir="${build}/org/openscience/cdk/config" />
103
104 <copy
105 file="org/openscience/cdk/config/isotopes.xml"
106 tofile="${build}/org/openscience/cdk/config/isotopes.xml" />
107 <copy
108 file="org/openscience/cdk/config/structgen_atomtypes.xml"
109 tofile="${build}/org/openscience/cdk/config/structgen_atomtypes.xml" />
c3ba50b Added Log4J configuration file.
egonw authored
110 <copy
111 file="org/openscience/cdk/config/log4j.properties"
112 tofile="${build}/org/openscience/cdk/config/log4j.properties" />
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
113
114 <mkdir
115 dir="${build}/org/openscience/cdk/io/cml/data" />
116
117 <copy
118 file="org/openscience/cdk/io/cml/data/cml.dtd"
1076f7c Removed a stupid copy-paste error.
egonw authored
119 tofile="${build}/org/openscience/cdk/io/cml/data/cml.dtd" />
d313d03 Also include cml.dtd in normal jar.
egonw authored
120
121 <jar jarfile="${dist}/jar/cdk.jar"
122 basedir="${build}" />
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
123
124 <jar jarfile="${dist}/jar/cdk-cml.jar"
125 basedir="${build}"
126 includes="org/openscience/cdk/io/cml/**" />
127 </target>
128
129 <target name="dist-with-java3d"
130 depends="compile-with-java3d">
131 <mkdir dir="${dist}/jar" />
132
ce6c169 Include config and data files in dist-with-java3d too.
egonw authored
133 <mkdir
134 dir="${build}/org/openscience/cdk/config" />
135
136 <copy
137 file="org/openscience/cdk/config/isotopes.xml"
138 tofile="${build}/org/openscience/cdk/config/isotopes.xml" />
139 <copy
140 file="org/openscience/cdk/config/structgen_atomtypes.xml"
141 tofile="${build}/org/openscience/cdk/config/structgen_atomtypes.xml" />
142 <copy
143 file="org/openscience/cdk/config/log4j.properties"
144 tofile="${build}/org/openscience/cdk/config/log4j.properties" />
145
146 <mkdir
147 dir="${build}/org/openscience/cdk/io/cml/data" />
148
149 <copy
150 file="org/openscience/cdk/io/cml/data/cml.dtd"
1076f7c Removed a stupid copy-paste error.
egonw authored
151 tofile="${build}/org/openscience/cdk/io/cml/data/cml.dtd" />
ce6c169 Include config and data files in dist-with-java3d too.
egonw authored
152
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
153 <jar jarfile="${dist}/jar/cdk-with-java3d.jar"
154 basedir="${build}" />
155 </target>
156
157 <target name="sourcedist" depends="init">
158 <copy todir="${sourcedist}">
159 <fileset dir="." includes="**/*java" />
160
161 <fileset dir="." includes="build.xml" />
162 </copy>
e1f7ebb Do not try to build classes that depend on classes that depend on Java3D
egonw authored
163 <copy todir="${sourcedist}/org/openscience/cdk/config/isotopes.xml">
164 <fileset dir="org/openscience/cdk/config/"
165 includes="*" />
166 </copy>
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
167
168 <tar tarfile="cdk-source-${DSTAMP}.tar"
169 basedir="${sourcedist}" includes="**" />
170
171 <gzip zipfile="cdk-source-${DSTAMP}.tar.gz"
172 src="cdk-source-${DSTAMP}.tar" />
173
174 <delete file="cdk-source-${DSTAMP}.tar" />
175
176 <zip zipfile="cdk-source-${DSTAMP}.zip"
177 basedir="${sourcedist}" includes="**" />
178 </target>
179
180 <target name="website">
181 <java classname="org.apache.xalan.xslt.Process"
182 args="-IN ../website.xml -XSL ../lib/cdkwebsite.xsl"
183 dir="doc/source/bin" fork="yes">
184 <classpath>
185 <pathelement
186 location="jar/xerces-1.3.0.jar" />
187
188 <pathelement
189 location="jar/xalan-2.0.1.jar" />
190
191 <pathelement
192 location="jar/bsf-2.0.1.jar" />
193 </classpath>
194 </java>
195 </target>
196
197 <target name="test" depends="clean,dist">
198 <junit printsummary="yes" haltonfailure="yes">
199 <classpath>
200 <pathelement
201 location="${dist}/jar/cdk.jar" />
202
203 <pathelement
204 path="${java.class.path}" />
205
206 <pathelement location="." />
207
208 <fileset dir="jar">
209 <include name="*.jar" />
210 </fileset>
211 </classpath>
212
213 <test
214 name="org.openscience.cdk.test.CDKTests"
215 haltonfailure="no"
216 todir="${reports.tests}"
217 outfile="result">
218 <formatter type="plain" />
219 </test>
220 </junit>
221 </target>
222
223 <target name="run-with-java3d"
224 depends="dist-with-java3d">
225 <java
226 classname="org.openscience.cdk.test.OrbitalsRenderer3DTest"
227 fork="yes">
228 <arg value="data/reserpine.mol" />
229
230 <classpath>
231 <pathelement
232 location="${dist}/jar/cdk-with-java3d.jar" />
233
234 <pathelement
235 path="${java.class.path}" />
236
237 <pathelement location="." />
238
239 <fileset dir="jar">
240 <include name="*.jar" />
241 </fileset>
242 </classpath>
243 </java>
244 </target>
245
246 <target name="run" depends="dist">
dc2fbd2 Checked whether color highlighting of atoms in Renderer2D works.
steinbeck authored
247 <java classname="org.openscience.cdk.test.Renderer2DTest" fork="yes">
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
248 <classpath>
249 <pathelement
250 location="${dist}/jar/cdk.jar" />
251
252 <pathelement
253 path="${java.class.path}" />
254
255 <pathelement location="." />
256
257 <fileset dir="jar">
258 <include name="*.jar" />
259 </fileset>
260 </classpath>
261 </java>
262 </target>
263
264 <target name="javadoc">
265 <mkdir dir="${javadoc.dir}" />
266
267 <javadoc packagenames="org.openscience.cdk.*"
268 sourcepath="." destdir="${javadoc.dir}"
be731b4 JavaDoc only outputs public methods now.
egonw authored
269 public="true">
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
270 <classpath refid="project.class.path" />
271 </javadoc>
272 </target>
c5eb7ec Added Ant build file.
egonw authored
273 </project>
5e15181 The class org.openscience.cdk.structgen.SingleStructureRandomGenerator
steinbeck authored
274
275
Something went wrong with that request. Please try again.