Skip to content

Commit

Permalink
Make it easier to test JDOM on different Java versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfl committed Feb 15, 2012
1 parent 327a789 commit 14757e2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ For instructions on how to build JDOM, please view the README.txt file.
<property name="samples.src" value="${samples}/" />
<property name="samples.build" value="${build}/samples"/>

<!-- Do not set a stax.dir
but it is available for override (for Java5 for example) -->
<property name="stax.dir" value="dummy" />

<property name="lib.dir" value="./lib"/>
<property name="packages" value="org.jdom2.*"/>

Expand Down Expand Up @@ -115,6 +119,10 @@ For instructions on how to build JDOM, please view the README.txt file.
<pathelement location="${isorelax.jar}" />
<pathelement location="${xalan.jar}" />
<pathelement location="${xalanser.jar}" />
<!-- normally these stax jars will not be found -->
<!-- this is used for testing Java5 (the test sets stax.dir) -->
<pathelement location="${stax.dir}/jsr173_1.0_api.jar" />
<pathelement location="${stax.dir}/sjsxp.jar" />
</path>

<path id="core.class.path">
Expand Down Expand Up @@ -357,8 +365,9 @@ For instructions on how to build JDOM, please view the README.txt file.

</target>

<target name="junit" depends="compile.core, compile.junit"
description="Run all the JUnit tests">

<target name="junit.nodeps" depends="init"
description="Run all the JUnit tests, but do not compile anything first">

<delete dir="${junit.report}" />
<mkdir dir="${junit.report}" />
Expand Down Expand Up @@ -400,6 +409,9 @@ For instructions on how to build JDOM, please view the README.txt file.
</junitreport>
</target>

<target name="junit" depends="compile.core, compile.junit, junit.nodeps"
description="Compile code required for JUnit, then run JUnit tests"/>

<target name="coverage" depends="coverage.setup, junit"
description="Run the code coverage tool.">
<delete dir="${coverage.out}"/>
Expand Down

0 comments on commit 14757e2

Please sign in to comment.