Revision 1500
Added by Jing Tao almost 22 years ago
build.xml | ||
---|---|---|
51 | 51 |
<property name="jdbc" value="lib/jdbc7.1-1.2.jar" /> |
52 | 52 |
</target> |
53 | 53 |
|
54 |
<target name="config" depends="oracle">
|
|
54 |
<target name="config" depends="postgresql">
|
|
55 | 55 |
<!-- Change the 'depends' attribute above to 'postgresql' to install |
56 | 56 |
metacat with postgres instead of oracle --> |
57 | 57 |
|
58 | 58 |
<!-- Customize these properties for your system --> |
59 | 59 |
<property name="tomcat" value="/usr/local/devtools/jakarta-tomcat" /> |
60 |
<property name="webapps" value="/opt/tomcat/webapps" />
|
|
60 |
<property name="webapps" value="/usr/local/devtools/jakarta-tomcat/webapps" />
|
|
61 | 61 |
<property name="context" value="tao" /> |
62 | 62 |
<property name="user" value="tao"/> |
63 | 63 |
<property name="password" value="tdataint"/> |
64 |
<property name="server" value="dev.nceas.ucsb.edu"/>
|
|
65 |
<property name="systemidserver" value="http://dev.nceas.ucsb.edu" />
|
|
66 |
<property name="datafilepath" value="/opt/tomcat/data/tao/data" />
|
|
67 |
<property name="inlinedatafilepath" value="/opt/tomcat/data/tao/inlinedata" />
|
|
64 |
<property name="server" value="pine.nceas.ucsb.edu:8443"/>
|
|
65 |
<property name="systemidserver" value="http://pine.nceas.ucsb.edu:8080" />
|
|
66 |
<property name="datafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/data" />
|
|
67 |
<property name="inlinedatafilepath" value="/usr/local/devtools/jakarta-tomcat/data/tao/inlinedata" />
|
|
68 | 68 |
<property name="debuglevel" value="35" /> |
69 | 69 |
<property name="forcereplicationwaitingtime" value="30000"/> |
70 | 70 |
<property name="web-base-url" |
... | ... | |
347 | 347 |
</junit> |
348 | 348 |
</target> |
349 | 349 |
|
350 |
<target name="runonetest" depends="install"> |
|
351 |
<!-- copy and compile the tests into a jar file --> |
|
352 |
<!--<property name="testtorun" value="SubTreeTest"/> --> |
|
353 |
<echo>testtorun: ${testtorun}</echo> |
|
354 |
<mkdir dir="${build.metacattest}"/> |
|
355 |
<javac srcdir="${junittestsdir}" |
|
356 |
destdir="${build.metacattest}" |
|
357 |
classpath="${cpath}:${build.dir}/${name}.jar" |
|
358 |
includes="**/*.java" /> |
|
359 |
|
|
360 |
<jar jarfile="${build.dir}/${name}-junittests.jar" |
|
361 |
basedir="${build.metacattest}" |
|
362 |
includes="**/*.class" /> |
|
363 |
|
|
364 |
<!-- use the ant "junit" task to run JUnit tests. --> |
|
365 |
<junit printsummary="yes" haltonfailure="no" fork="no" |
|
366 |
haltonerror="no"> |
|
367 |
<classpath> |
|
368 |
<pathelement path="${cpath}:${build.dir}/${name}.jar:${build.dir}/${name}-junittests.jar" /> |
|
369 |
</classpath> |
|
370 |
|
|
371 |
<formatter type="plain" /> |
|
372 |
|
|
373 |
<batchtest fork="yes" todir="${build.dir}"> |
|
374 |
<fileset dir="${build.metacattest}"> |
|
375 |
|
|
376 |
<include name="**/${testtorun}.class" /> |
|
377 |
</fileset> |
|
378 |
</batchtest> |
|
379 |
</junit> |
|
380 |
</target> |
|
381 |
|
|
350 | 382 |
<target name="gethttpclient" depends="prepare"> |
351 | 383 |
<!--mkdir dir="${morphosourcedir}" --> |
352 | 384 |
<cvs cvsRoot="${cvsroot}" |
Also available in: Unified diff
Add a new project name runonetest. It can run single junit test. The class name can be passed to build.xml. The syntax is: ant -Dtesttorun=className runonetest