Skip to content

Commit

Permalink
produce zip with javadocs (supplement to testng-dist.jar)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasj committed Mar 21, 2012
1 parent 7680a44 commit 0e59a13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.properties
Expand Up @@ -48,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
8 changes: 7 additions & 1 deletion build.xml
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,dist-testng-dist" />
<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 @@ -243,6 +243,12 @@
</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 0e59a13

Please sign in to comment.