Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cbeust/testng
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeust committed Mar 21, 2012
2 parents 2aaa11c + 56e6648 commit 4552407
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ all.jar.files=${beanshell.jar},${junit.jar},${ant.jar},${jcommander.jar},${yaml.
# Names of distributions
#
testng.jar=${target}/${testng.fullname}.jar
testng.dist.jar=${testng.fullname}-dist.jar
sources.testng.jar=${testng.fullname}-sources.jar
testng.junit.jar=${testng.fullname}-junit.jar
testng.nobsh.noguice.jar=${testng.fullname}-nobsh-noguice.jar
Expand All @@ -47,6 +48,7 @@ testng.nobsh.guice.jar=${testng.fullname}-nobsh-guice.jar
testng.ibiblio.jar=${testng.fullname}-bundle.jar
testng.zip=${target}/${testng.fullname}.zip
testng.maven-bundle=${target}/${testng.fullname}-bundle.jar
testng.javadoc.zip=${testng.fullname}-javadoc.zip

other.jars.dir=${target}/other-jars

Expand Down
17 changes: 16 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@

<target name="dist" depends="build,all-jar-flavors,dist-all-zip,eclipse" />

<target name="all-jar-flavors" depends="dist-junit,dist-nobsh-guice,dist-bsh-noguice,dist-nobsh-noguice" />
<target name="all-jar-flavors" depends="dist-junit,dist-nobsh-guice,dist-bsh-noguice,dist-nobsh-noguice,dist-testng-dist,dist-testng-javadoc" />

<target name="dist-junit">
<antcall target="create-jar">
Expand Down Expand Up @@ -234,6 +234,21 @@
</jar>
</target>

<target name="dist-testng-dist">
<antcall target="create-jar">
<param name="jar.file" value="${other.jars.dir}/${testng.dist.jar}" />
</antcall>
<jar jarfile="${other.jars.dir}/${testng.dist.jar}" update="true">
<zipfileset src="${lib.dir}/${jcommander.jar}" />
</jar>
</target>

<target name="dist-testng-javadoc" depends="javadocs">
<zip destfile="${other.jars.dir}/${testng.javadoc.zip}">
<fileset dir="javadocs"/>
</zip>
</target>

<target name="create-jar" description="Create a jar file with the Testng classes and nothing else" >
<delete file="${jar.file}" />
<jar destfile="${jar.file}" >
Expand Down

0 comments on commit 4552407

Please sign in to comment.