• Home
  • Raw
  • Download

Lines Matching +full:- +full:jar

3   <!-- ====================================================================== -->
4 <!-- TestNG build file -->
5 <!-- Created cbeust, April 26th, 2004 -->
6 <!-- ====================================================================== -->
11 <!-- ====================================================================== -->
12 <!-- PREPARE -->
13 <!-- ====================================================================== -->
14 <target name="prepare" depends="retrieve-dependencies"
21 <!-- ====================================================================== -->
22 <!-- DUMP -->
23 <!-- ====================================================================== -->
28 <!-- ====================================================================== -->
29 <!-- VALIDATE -->
30 <!-- ====================================================================== -->
33 <!-- java greater than 1.6 required to build -->
43 <!-- validate ant version too ... -->
46 <!-- ==================================================================== -->
47 <!-- COPY-RESOURCES -->
48 <!-- ==================================================================== -->
50 <target name="copy-resources" description="Copies resources.">
64 depends="prepare,validate,copy-resources,build,tests" />
67 depends="prepare,validate,copy-resources,build,dist,tests,test-ant,javadocs,dist" />
69 <target name="build" depends="prepare,compile,testng-jar-all" />
71 <target name="testng-jar-all">
72 <antcall target="create-jar">
73 <param name="jar.file" value="${testng.jar}" />
75 <jar jarfile="${testng.jar}" update="true">
76 <zipfileset src="${lib.dir}/${beanshell.jar}" />
77 <zipfileset src="${lib.dir}/${jcommander.jar}" />
78 <zipfileset src="${lib.dir}/${yaml.jar}" />
79 </jar>
84 <ant antfile="build-tests.xml" target="run:single"/>
87 <!-- ==================================================================== -->
88 <!-- Compile -->
89 <!-- ==================================================================== -->
92 <fileset dir="${lib.dir}" includes="${all.jar.files}" />
96 depends="prepare,copy-resources"
98 <echo message=" -- Compiling sources --" />
118 <ant inheritall="no" antfile="build-tests.xml" />
121 <target name="test-ant" depends="build">
122 <echo message=" -- Testing ant testng task functionality --" />
123 <ant inheritall="no" antfile="build-ant.xml" />
126 <!-- ==================================================================== -->
127 <!-- Documentation -->
128 <!-- ==================================================================== -->
130 <target name="javadocs" depends="build,javadocs-current" />
134 docletpath="3rdparty/doclava-1.0.3.jar"
135 bootclasspath="${javahome}/jre/lib/rt.jar"
136 classpath="${testng.jar}:lib/${ant.jar}:lib/${guice2.jar}:lib/aopalliance-1.0.jar"
138 additionalparam="-quiet"
152 <param name="-stubs" value="build/stubs" />
153 <param name="-hdf"/>
155 <!-- versioning -->
156 <param name="-since"/>
159 <param name="-apiversion" value="v2"/>
160 <!-- federation -->
161 <param name="-federate" />
164 <param name="-federationxml"/><param name="JDK"/>
165 <param name="http://doclava.googlecode.com/svn/static/api/openjdk-6.xml"/>
170 <target name="javadocs-current">
171 <javadoc additionalparam="-quiet" destdir="javadocs" source="1.7" windowtitle="TestNG"
172 classpath="${testng.jar}" classpathref="compile2.cp" verbose="false">
185 <!-- ==================================================================== -->
186 <!-- Distribution -->
187 <!-- ==================================================================== -->
189 <target name="dist" depends="build,all-jar-flavors,dist-all-zip,eclipse" />
191 …<target name="all-jar-flavors" depends="dist-junit,dist-nobsh-guice,dist-bsh-noguice,dist-nobsh-no…
193 <target name="dist-junit">
194 <antcall target="create-jar">
195 <param name="jar.file" value="${other.jars.dir}/${testng.junit.jar}" />
197 <jar jarfile="${other.jars.dir}/${testng.junit.jar}" update="true">
198 <zipfileset src="${lib.dir}/${beanshell.jar}" />
199 <zipfileset src="${lib.dir}/${jcommander.jar}" />
200 <zipfileset src="${lib.dir}/${junit.jar}" />
201 <zipfileset src="${lib.dir}/${yaml.jar}" />
202 </jar>
205 <target name="dist-nobsh-guice">
206 <antcall target="create-jar">
207 <param name="jar.file" value="${other.jars.dir}/${testng.nobsh.guice.jar}" />
209 <jar jarfile="${other.jars.dir}/${testng.nobsh.guice.jar}" update="true">
210 <zipfileset src="${lib.dir}/${guice2.jar}" />
211 <zipfileset src="${lib.dir}/${jcommander.jar}" />
212 <zipfileset src="${lib.dir}/${junit.jar}" />
213 </jar>
216 <target name="dist-bsh-noguice">
217 <antcall target="create-jar">
218 <param name="jar.file" value="${other.jars.dir}/${testng.bsh.noguice.jar}" />
220 <jar jarfile="${other.jars.dir}/${testng.bsh.noguice.jar}" update="true">
221 <zipfileset src="${lib.dir}/${beanshell.jar}" />
222 <zipfileset src="${lib.dir}/${jcommander.jar}" />
223 <zipfileset src="${lib.dir}/${junit.jar}" />
224 </jar>
227 <target name="dist-nobsh-noguice">
228 <antcall target="create-jar">
229 <param name="jar.file" value="${other.jars.dir}/${testng.nobsh.noguice.jar}" />
231 <jar jarfile="${other.jars.dir}/${testng.bsh.noguice.jar}" update="true">
232 <zipfileset src="${lib.dir}/${jcommander.jar}" />
233 <zipfileset src="${lib.dir}/${junit.jar}" />
234 </jar>
237 <target name="dist-testng-dist">
238 <antcall target="create-jar">
239 <param name="jar.file" value="${other.jars.dir}/${testng.dist.jar}" />
241 <jar jarfile="${other.jars.dir}/${testng.dist.jar}" update="true">
242 <zipfileset src="${lib.dir}/${jcommander.jar}" />
243 </jar>
246 <target name="dist-testng-javadoc" depends="javadocs">
252 …<target name="create-jar" description="Create a jar file with the Testng classes and nothing else"
254 <delete file="${jar.file}" />
255 <jar destfile="${jar.file}" >
257 <attribute name="Main-Class" value="org.testng.TestNG" />
258 <attribute name="Implementation-Version" value="${testng.version}-${DSTAMP}${TSTAMP}" />
261 <fileset file="TESTNG-${testng.version}" />
262 </jar>
265 <target name="dist-all-zip" depends="dist-prepare,javadocs">
266 <property name="zip.dir" value="testng-${testng.version}" />
270 <include name="${testng.fullname}.jar" />
273 <zipfileset dir="${other.jars.dir}" prefix="${zip.dir}/other-jars"/>
284 <!--
285 <target name="dist-maven-bundle" depends="dist-all-zip">
286 <mkdir dir="${build.maven-bundle.dir}" />
287 <copy file="bundle-pom.xml" tofile="${build.maven-bundle.dir}/pom.xml" overwrite="true">
292 <jar destfile="${build.maven-bundle.dir}/${sources.testng.jar}">
294 </jar>
297 <arg value="- -yes" />
298 <arg value="-ab" />
299 <arg value="${testng.jar}" />
303 <arg value="- -yes" />
304 <arg value="-ab" />
305 <arg value="${build.maven-bundle.dir}/pom.xml" />
309 <arg value="- -yes" />
310 <arg value="-ab" />
311 <arg value="${build.maven-bundle.dir}/${sources.testng.jar}" />
314 <jar destfile="${testng.maven-bundle}">
315 <fileset file="${build.maven-bundle.dir}/pom.xml" />
316 <fileset file="${build.maven-bundle.dir}/${sources.testng.jar}" />
317 <fileset file="${build.maven-bundle.dir}/*asc" />
318 <fileset file="${testng.jar}" />
319 <fileset file="${testng.jar}.asc" />
320 </jar>
322 -->
324 <target name="dist-prepare" depends="update-readme">
325 <delete file="{other.jars.dir}/${testng.nobsh.jar}" />
329 <target name="update-readme">
332 <touch file="TESTNG-${testng.version}" />
336 <property name="jdk15.jar"
337 value="${testng-eclipse.dir}/lib/testng.jar" />
339 <delete file="${jdk15.jar}" />
340 <copy file="${testng.jar}" tofile="${jdk15.jar}" />
342 <!-- sources -->
343 <property name="sources" value="${testng-eclipse.dir}/lib/testng-sources.jar"/>
345 <jar destfile="${sources}" basedir="src/main/java/" />
349 <!--
352 remotedir="w/testng/test-output"
355 <fileset dir="c:\weblogic\dev\sandbox\cbeust\testng\test\test-output">
362 -->
371 <include name="testng-1.0.dtd" />
387 <include name="test-output/*" />
390 <include name="test-report/*" />
398 <delete dir="${build.maven-bundle.dir}" />
400 <fileset dir="." includes="testng*.jar,*.zip" />
402 <delete dir="test-output" failonerror="false" />
403 <delete dir="test-output-tests" failonerror="false" />
404 <ant antfile="build-tests.xml" target="clean" />
408 <!-- ==================================================================== -->
409 <!-- Maven1/2 Distribution -->
410 <!-- ==================================================================== -->
412 <!--
413 <target name="maven-plugin">
414 <jar destfile="maven-testng-plugin-${testng-maven.version}.jar"
417 -->
419 <!-- ==================================================================== -->
420 <!-- Ivy -->
421 <!-- ==================================================================== -->
423 <target name="retrieve-dependencies" description="Retrieve dependencies with ivy">
430 <copy file="${testng.jar}" todir="dist/jars" />
435 <ivy:makepom ivyfile="ivy.xml" pomfile="ivy-pom.xml" />
438 <!-- ==================================================================== -->
439 <!-- Code coverage -->
440 <!-- ==================================================================== -->
442 <!--
443 <property name="cobertura.dir" value="../cobertura-1.9.4.1" />
447 <include name="cobertura.jar" />
448 <include name="lib/**/*.jar" />
455 <cobertura-instrument classpath="cobertura-1.9.4.1/lib/*" todir="target/instrumented-classes">
459 </cobertura-instrument>
463 <cobertura-report srcdir="${src.dir}" destdir="target/coverage-report"/>
465 -->