Revision 1103
Added by Jing Tao over 22 years ago
build.xml | ||
---|---|---|
63 | 63 |
<property name="password" value="your-pw-goes-here"/> |
64 | 64 |
<property name="server" value="pine.nceas.ucsb.edu:8443"/> |
65 | 65 |
<property name="systemidserver" value="http://pine.nceas.ucsb.edu:8080" /> |
66 |
<property name="datafilepath" value="/usr/local/devtools/jakarta-tomcat/data" /> |
|
66 |
<property name="datafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/data" />
|
|
67 | 67 |
<property name="replication" value="on" /> |
68 | 68 |
<property name="replicationsenddata" value="on" /> |
69 |
<property name="replicationacceptdata" value="on" />
|
|
69 |
<property name="replicationacceptdata" value="off" />
|
|
70 | 70 |
<property name="debuglevel" value="55" /> |
71 | 71 |
<property name="web-base-url" |
72 | 72 |
value="http://knb.ecoinformatics.org"/> |
73 | 73 |
<property name="default-style" value="knb" /> |
74 |
<property name="morphosourcedir" value="./morpho" /> |
|
74 | 75 |
|
75 | 76 |
<!-- Make sure these paths match the location of the jar files |
76 | 77 |
on your system, the defaults should usually work --> |
... | ... | |
88 | 89 |
value="lib/xalan/xalan.jar" /> |
89 | 90 |
<property name="apis" |
90 | 91 |
value="lib/xalan/xml-apis.jar" /> |
91 |
</target> |
|
92 |
<property name="httpclient" |
|
93 |
value="${morphosourcedir}/lib/httpclient.jar" /> |
|
94 |
<property name="itis" |
|
95 |
value="${morphosourcedir}/lib/itislib.jar" /> |
|
92 | 96 |
|
97 |
</target> |
|
98 |
|
|
93 | 99 |
<target name="init" depends="config"> |
94 | 100 |
<!-- It is less likely you'll need to make any changes from here down, |
95 | 101 |
but customization is possible --> |
... | ... | |
142 | 148 |
<filter token="datafilepath" value="${datafilepath}" /> |
143 | 149 |
<property name="srcdir" value="./src" /> |
144 | 150 |
<property name="junittestsdir" value="./junittests" /> |
151 |
<property name="junitnettestsdir" value="./junitnettests" /> |
|
145 | 152 |
<property name="build.dir" value="./build"/> |
146 | 153 |
<property name="build.src" value="${build.dir}/src"/> |
147 | 154 |
<property name="build.dest" value="${build.dir}/classes"/> |
... | ... | |
149 | 156 |
<property name="build.samples" value="${build.dir}/samples"/> |
150 | 157 |
<property name="build.tests" value="${build.dir}/tests"/> |
151 | 158 |
<property name="build.junittests" value="${build.dir}/junittests"/> |
159 |
<property name="build.junitnettests" value="${build.dir}/junitnettests"/> |
|
152 | 160 |
<property name="build.data" value="${build.dir}/data"/> |
153 | 161 |
<property name="build.javadocs" value="${build.dir}/docs/api"/> |
154 | 162 |
<property name="build.img" value="${installdir}/${image-path}"/> |
... | ... | |
302 | 310 |
</batchtest> |
303 | 311 |
</junit> |
304 | 312 |
</target> |
305 |
|
|
313 |
|
|
314 |
<target name="gethttpclient" depends="prepare"> |
|
315 |
<!--mkdir dir="${morphosourcedir}" --> |
|
316 |
<cvs cvsRoot=":ext:tao@cvs.ecoinformatics.org:/cvs" |
|
317 |
package="morpho" |
|
318 |
dest="." /> |
|
319 |
<ant dir="${morphosourcedir}" target="jar" /> |
|
320 |
</target> |
|
321 |
|
|
322 |
<!-- run this target, we need to check out a another morpho souce dir was checked out. --> |
|
323 |
<target name="nettest" depends="install"> |
|
324 |
<echo>*********************************** |
|
325 |
Please run ant gethttpclient first! |
|
326 |
*********************************** |
|
327 |
${itis} |
|
328 |
</echo> |
|
329 |
<!-- copy and compile the tests into a jar file --> |
|
330 |
<mkdir dir="${build.junitnettests}"/> |
|
331 |
<javac srcdir="${junitnettestsdir}" |
|
332 |
destdir="${build.junitnettests}" |
|
333 |
classpath="${cpath}:${build.dir}/${name}.jar:${httpclient}" |
|
334 |
includes="**/*.java" /> |
|
335 |
|
|
336 |
<jar jarfile="${build.dir}/${name}-junitnettests.jar" |
|
337 |
basedir="${build.junitnettests}" |
|
338 |
includes="**/*.class" /> |
|
339 |
|
|
340 |
<!-- use the ant "junit" task to run JUnit tests. --> |
|
341 |
<junit printsummary="yes" haltonfailure="no" fork="no" |
|
342 |
haltonerror="no"> |
|
343 |
<classpath> |
|
344 |
<pathelement path="${cpath}:${build.dir}/${name}.jar:${httpclient}:${build.dir}/${name}-junitnettests.jar:${itis}" /> |
|
345 |
</classpath> |
|
346 |
|
|
347 |
<formatter type="plain" /> |
|
348 |
|
|
349 |
<batchtest fork="yes" todir="${build.dir}"> |
|
350 |
<fileset dir="${junitnettestsdir}"> |
|
351 |
<include name="**/*.java" /> |
|
352 |
</fileset> |
|
353 |
</batchtest> |
|
354 |
</junit> |
|
355 |
</target> |
|
356 |
|
|
306 | 357 |
<target name="clean" depends="init"> |
307 | 358 |
<delete dir="${build.dir}" /> |
308 | 359 |
</target> |
Also available in: Unified diff
Add two targets in build file: gethttpclient and nettest. gethttpclient wil checkout morpho and ran ant get httpclient.jar(cvs doesn't have httpclient.jar). nettest will run a junit test which will involve httpclient.jar file.