|
1 | | -<!-- An ANT build file for JCommon. --> |
| 1 | +!-- An ANT build file for JCommon. --> |
2 | 2 |
|
3 | 3 | <!-- Written by David Gilbert. --> |
4 | 4 | <!-- 24-Jan-2003 --> |
|
135 | 135 |
|
136 | 136 | </target> |
137 | 137 |
|
138 | | - <!-- Compile the JUnit test classes --> |
139 | | - <target name="compile-junit-tests" depends="compile" |
140 | | - description="Compile the JUnit tests for JCommon."> |
141 | | - |
142 | | - <!-- create a temp build directory --> |
143 | | - <mkdir dir="build"/> |
144 | | - |
145 | | - <!-- compile the source --> |
146 | | - <javac srcdir="src/test/java" destdir="${builddir}" |
147 | | - deprecation="${build.deprecation}" debug="${build.debug}" |
148 | | - optimize="${build.optimize}" target="${build.target}" source="${build.source}"> |
149 | | - <classpath refid="junit.classpath"/> |
150 | | - </javac> |
151 | | - |
152 | | - <!-- make the jar --> |
153 | | - <jar jarfile="${junit-dir}/${jcommon-junit-jar-file}" |
154 | | - basedir="build"/> |
155 | | - |
156 | | - <!-- delete the temp directory --> |
157 | | - <delete dir="build"/> |
158 | | - |
159 | | - </target> |
160 | | - |
161 | 138 | <!-- Generate the JCommon JavaDoc HTML pages --> |
162 | 139 | <target name="javadoc" depends="initialise"> |
163 | 140 | <delete dir="javadoc"/> |
|
208 | 185 | <!-- copy across maven xml files --> |
209 | 186 | <copy file="pom.xml" tofile="distribution/pom.xml"/> |
210 | 187 |
|
211 | | - <!-- copy across junit test jar file --> |
212 | | - <copy file="${junit-dir}/${jcommon-junit-jar-file}" |
213 | | - tofile="distribution/${jcommon-junit-jar-file}"/> |
214 | | - |
215 | 188 | <!-- copy across junit jar file --> |
216 | 189 | <copy file="${junit-dir}/${junit-jar-file}" tofile="distribution/lib/junit.jar"/> |
217 | 190 |
|
|
234 | 207 | </target> |
235 | 208 |
|
236 | 209 | <!-- Make .zip distribution for JCommon --> |
237 | | - <target name="zip" depends="compile-xml,compile-junit-tests"> |
| 210 | + <target name="zip" depends="compile-xml"> |
238 | 211 |
|
239 | 212 | <!-- make a temporary distribution directory --> |
240 | 213 | <mkdir dir="distribution"/> |
|
257 | 230 | </target> |
258 | 231 |
|
259 | 232 | <!-- Make .tar.gz distribution for JCommon --> |
260 | | - <target name="targz" depends="compile-xml,compile-junit-tests"> |
| 233 | + <target name="targz" depends="compile-xml"> |
261 | 234 |
|
262 | 235 | <!-- make a temporary distribution directory --> |
263 | 236 | <mkdir dir="distribution"/> |
|
321 | 294 |
|
322 | 295 | <!-- ALL --> |
323 | 296 | <target name="all" |
324 | | - depends="compile,compile-xml,compile-junit-tests,javadoc,zip,targz,maven-bundle" |
| 297 | + depends="compile,compile-xml,javadoc,zip,targz,maven-bundle" |
325 | 298 | description="Compiles JCommon, builds the jar files, generates the Javadoc HTML pages and creates distribution files (.zip and .tar.gz)."> |
326 | 299 | </target> |
327 | 300 |
|
|
0 commit comments