|
35 | 35 | <property name="arg3" value="" /> |
36 | 36 | <property name="arg4" value="" /> |
37 | 37 |
|
| 38 | + <!-- jvm arguments --> |
| 39 | + <property name="jvmarg.cdk.debugging" value="true" |
| 40 | + description="print debug logging statements"/> |
| 41 | + <property name="jvmarg.cdk.stdout" value="true"/> |
| 42 | + |
38 | 43 | <!-- jar file names for libraries used for compiling --> |
39 | 44 | <property name="javaccjar" value="javacc.jar" /> |
40 | 45 | <property name="antcontribjar" value="ant-contrib-1.0b3.jar" /> |
|
1124 | 1129 | -Dtestclass=<class>."> |
1125 | 1130 | <echo message="Running test class: testclass=${testclass}"/> |
1126 | 1131 | <java classname="org.openscience.cdk.${testclass}" fork="yes" maxmemory="512m"> |
1127 | | - <jvmarg value="-Dcdk.debugging=true"/> |
| 1132 | + <jvmarg value="-Dcdk.debugging=${jvmarg.cdk.debugging}"/> |
| 1133 | + <jvmarg value="-Dcdk.debug.stdout=${jvmarg.cdk.stdout}"/> |
1128 | 1134 | <classpath> |
1129 | 1135 | <fileset dir="${dist}/jar/"> |
1130 | 1136 | <include name="*.jar" /> |
|
1139 | 1145 | </java> |
1140 | 1146 | </target> |
1141 | 1147 |
|
1142 | | - <target id="junit-test" name="junit-test" depends="dist-all,test-dist-all,noJunit" |
| 1148 | + <target id="junit-test" name="junit-test" depends="dist-all,jarTestdata,test-dist-all,noJunit" |
1143 | 1149 | description="Runs one specific JUnit test suite (org.openscience.cdk.<class>) with -Dtestclass=<class>."> |
1144 | | - <echo message="JUnit tests class: testclass=${testclass}"/> |
1145 | | - <junit printsummary="yes" haltonfailure="no" fork="yes"> |
1146 | | - <jvmarg value="-Dcdk.debugging=true"/> |
1147 | | - <jvmarg value="-Dcdk.debug.stdout=true"/> |
| 1150 | + <echo message="JUnit tests class: testclass=${testclass} [JVM Arguments: cdk.debugging=${cdk.debugging}, ${jvmarg.cdk.stdout}]"/> |
| 1151 | + <junit printsummary="yes" haltonfailure="no" fork="yes" maxmemory="512m"> |
| 1152 | + <jvmarg value="-Dcdk.debugging=${jvmarg.cdk.debugging}"/> |
| 1153 | + <jvmarg value="-Dcdk.debug.stdout=${jvmarg.cdk.stdout}"/> |
1148 | 1154 | <classpath> |
1149 | 1155 | <fileset dir="${dist}/jar/"> |
1150 | 1156 | <include name="*.jar" /> |
|
1170 | 1176 | <target id="run" name="run" depends="dist-all" |
1171 | 1177 | description="Runs an application (org.openscience.cdk.<class>) with -Drunclass=<class>."> |
1172 | 1178 | <java classname="org.openscience.cdk.${runclass}" fork="yes" > |
1173 | | - <!--jvmarg value="-Dcdk.debugging=true"/> |
1174 | | - <jvmarg value="-Dcdk.debug.stdout=true"/--> |
1175 | | - |
1176 | | - <arg value="${arg1}" /> |
1177 | | - <arg value="${arg2}" /> |
1178 | | - <arg value="${arg3}" /> |
1179 | | - <arg value="${arg4}" /> |
1180 | | - <classpath> |
| 1179 | + <jvmarg value="-Dcdk.debugging=${jvmarg.cdk.debugging}"/> |
| 1180 | + <jvmarg value="-Dcdk.debug.stdout=${jvmarg.cdk.stdout}"/> |
| 1181 | + <arg value="${arg1}" /> |
| 1182 | + <arg value="${arg2}" /> |
| 1183 | + <arg value="${arg3}" /> |
| 1184 | + <arg value="${arg4}" /> |
| 1185 | + <classpath> |
1181 | 1186 | <fileset dir="${dist}/jar"> |
1182 | 1187 | <include name="*.jar" /> |
1183 | 1188 | </fileset> |
|
0 commit comments