<property file="${basedir}/build-local.properties"/>
<property file="${basedir}/build.properties"/>
<property environment="env"/>
- <property name="build.lib.dir" value="${basedir}/lib/build"/>
<fileset dir="${basedir}" id="dist.bin">
<include name="conf/**"/>
<include name="examples/**"/>
<include name="lib/xml-apis*"/>
</patternset>
</fileset>
+ <patternset id="dist.src.lib.tools">
+ <include name="lib/build/asm*"/>
+ <include name="lib/build/backport-util-concurrent*"/>
+ <include name="lib/build/jaxen*"/>
+ <include name="lib/build/pmd*"/>
+ <include name="lib/build/qdox*"/>
+ <include name="lib/build/retroweaver*"/>
+ <include name="lib/build/xmlunit*"/>
+ </patternset>
<fileset dir="${basedir}" id="dist.src">
<include name="src/**"/>
<include name="conf/**"/>
<include name="hyph/hyphenation.dtd"/>
<include name="hyph/readme"/>
<patternset refid="dist.lib"/>
+ <patternset refid="dist.src.lib.tools"/>
<include name="lib/servlet*"/>
<include name="test/**"/>
<include name="examples/**"/>
<include name="*.jar"/>
</fileset>
</path>
- <property name="lib-build-tools" value="${basedir}/lib/build"/>
- <path id="libs-build-tools-classpath">
+ <property name="lib-tools" value="${basedir}/lib/build"/>
+ <path id="libs-tools-build-classpath">
<path refid="libs-build-classpath"/>
- <fileset dir="${lib-build-tools}">
+ <fileset dir="${lib-tools}">
<include name="*.jar"/>
</fileset>
</path>
<echo message="${jce.message}"/>
<available property="jdk14.present" classname="java.lang.CharSequence"/>
<fail message="${Name} requires at least Java 1.4!" unless="jdk14.present"/>
- <available property="junit.present" classname="junit.framework.TestCase" classpathref="libs-build-tools-classpath"/>
+ <available property="junit.present" classname="junit.framework.TestCase" classpathref="libs-tools-build-classpath"/>
<condition property="junit.message" value="JUnit Support PRESENT">
<equals arg1="${junit.present}" arg2="true"/>
</condition>
<echo message="${junit.message}"/>
<condition property="xmlunit.present">
<and>
- <available classname="org.custommonkey.xmlunit.XMLTestCase" classpathref="libs-build-tools-classpath"/>
+ <available classname="org.custommonkey.xmlunit.XMLTestCase" classpathref="libs-tools-build-classpath"/>
<isset property="junit.present"/>
</and>
</condition>
<src path="${src.codegen.dir}/java"/>
<patternset includes="**/*.java"/>
<classpath>
- <path refid="libs-build-tools-classpath"/>
+ <path refid="libs-tools-build-classpath"/>
<pathelement location="${build.classes.dir}"/>
</classpath>
</javac>
</copy>
<taskdef name="eventResourceGenerator" classname="org.apache.fop.tools.EventProducerCollectorTask">
<classpath>
- <path refid="libs-build-tools-classpath"/>
+ <path refid="libs-tools-build-classpath"/>
<pathelement location="${build.classes.dir}"/>
<pathelement location="${build.codegen-classes.dir}"/>
</classpath>
<target name="retro-avail" depends="compile" if="java14.rt.lib">
<taskdef name="retroweaver" classname="net.sourceforge.retroweaver.ant.RetroWeaverTask">
<classpath>
- <path refid="libs-build-tools-classpath"/>
+ <path refid="libs-tools-build-classpath"/>
</classpath>
</taskdef>
<path id="verify-classpath">
<src path="${test.dir}/java"/>
<patternset refid="test-sources"/>
<classpath>
- <path refid="libs-build-tools-classpath"/>
+ <path refid="libs-tools-build-classpath"/>
<fileset dir="${build.dir}">
<include name="fop.jar"/>
</fileset>
<formatter type="xml" usefile="true"/>
<classpath>
<pathelement location="${build.dir}/test-classes"/>
- <path refid="libs-build-tools-classpath"/>
+ <path refid="libs-tools-build-classpath"/>
<pathelement location="${build.dir}/fop.jar"/>
</classpath>
<test name="@{testsuite}" todir="${junit.reports.dir}" outfile="@{outfile}"/>
<and>
<available classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
<classpath>
- <path refid="libs-build-tools-classpath"/>
+ <path refid="libs-tools-build-classpath"/>
</classpath>
</available>
<available file="${checkstyle.noframes.xslt}"/>
</condition>
<target name="checkstyle-avail" unless="checkstyle.avail">
<echo message="Checkstyle support NOT present. Please download it from http://checkstyle.sf.net/ and"/>
- <echo message="..copy or link checkstyle-all-5.0.jar to ${lib-build-tools}"/>
+ <echo message="..copy or link checkstyle-all-5.0.jar to ${lib-tools}"/>
<echo message="..copy or link checkstyle-noframes.xsl to ${checkstyle.noframes.xslt}"/>
</target>
<target name="checkstyle" depends="init, checkstyle-avail" if="checkstyle.avail" description="Runs Checkstyle for a code quality report">
- <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpathref="libs-build-tools-classpath"/>
+ <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpathref="libs-tools-build-classpath"/>
<checkstyle config="checkstyle-5.0.xml" failonviolation="false">
<fileset dir="${src.java.dir}" includes="**/*.java"/>
<formatter type="xml" toFile="${build.dir}/report_checkstyle.xml"/>
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask">
<classpath>
<path refid="libs-build-classpath"/>
- <path refid="libs-build-tools-classpath"/>
+ <path refid="libs-tools-build-classpath"/>
</classpath>
</taskdef>
<pmd shortFilenames="true" targetjdk="${javac.target}">
<taskdef name="cpd" classname="net.sourceforge.pmd.cpd.CPDTask">
<classpath>
<path refid="libs-build-classpath"/>
- <path refid="libs-build-tools-classpath"/>
+ <path refid="libs-tools-build-classpath"/>
</classpath>
</taskdef>
<cpd minimumTokenCount="100" outputFile="${build.dir}/report_cpd.txt">
<delete>
<fileset dir="${basedir}" includes="${name}-*.tar.gz"/>
<fileset dir="${basedir}" includes="${name}-*.zip"/>
+ <fileset dir="${basedir}" includes="${name}-bundle.jar"/>
</delete>
</target>
<target name="validate-xdocs" description="Validate the xdocs. Point schemas.dir to Forrest's 'schemas' directory.">