Browse Source

Make the eventResourceGenerator task for the test files a separate

task. Now one can do: ant codegen, compile outside of ant, ant
compile-copy-resources, ant junit-compile-copy-resources.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@651333 13f79535-47bb-0310-9956-ffa450edef68
pull/37/head
Simon Pepping 16 years ago
parent
commit
18ff86783d
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      build.xml

+ 7
- 1
build.xml View File

@@ -790,7 +790,8 @@ list of possible build targets.
<exclude name="**/intermediate/*"/>
</patternset>
</target>
<target name="junit-compile" depends="package, transcoder-pkg, junit-with-xmlunit, junit-without-xmlunit" description="Runs FOP's JUnit tests" if="junit.present">

<target name="junit-compile-java" depends="package, transcoder-pkg, junit-with-xmlunit, junit-without-xmlunit" if="junit.present">
<mkdir dir="${build.dir}/test-classes"/>
<mkdir dir="${build.dir}/test-gensrc"/>
<mkdir dir="${junit.reports.dir}"/>
@@ -807,6 +808,9 @@ list of possible build targets.
</fileset>
</classpath>
</javac>
</target>

<target name="junit-compile-copy-resources" if="junit.present">
<eventResourceGenerator modelfile="${build.dir}/test-gensrc/org/apache/fop/events/test-event-model.xml">
<fileset dir="${basedir}/test/java">
<include name="**/*.java"/>
@@ -823,6 +827,8 @@ list of possible build targets.
</copy>
</target>

<target name="junit-compile" depends="junit-compile-java, junit-compile-copy-resources" description="Compiles FOP's JUnit tests" if="junit.present"/>

<target name="junit-transcoder" depends="junit-compile" description="Runs FOP's JUnit transcoder tests" if="junit.present">
<echo message="Running basic functionality tests for fop-transcoder.jar"/>
<junit dir="${basedir}" haltonfailure="${junit.haltonfailure}" fork="${junit.fork}">

Loading…
Cancel
Save