aboutsummaryrefslogtreecommitdiffstats
path: root/fop
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2016-03-06 06:50:13 +0000
committerGlenn Adams <gadams@apache.org>2016-03-06 06:50:13 +0000
commit81efcf19944d3bfe7cff7b88adbae93a03869780 (patch)
tree8b10f8f0a3f382152ac9a9217a1c138bf5603640 /fop
parent57949ba0cfffa2dd5933a103c6ad867de9f1e7a0 (diff)
downloadxmlgraphics-fop-81efcf19944d3bfe7cff7b88adbae93a03869780.tar.gz
xmlgraphics-fop-81efcf19944d3bfe7cff7b88adbae93a03869780.zip
Fixups for ant builds after code reorganization.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/maven@1733789 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop')
-rw-r--r--fop/build.xml24
1 files changed, 16 insertions, 8 deletions
diff --git a/fop/build.xml b/fop/build.xml
index 6639bc568..c8ac770a6 100644
--- a/fop/build.xml
+++ b/fop/build.xml
@@ -147,6 +147,9 @@ list of possible build targets.
<patternset id="exclude-jce-dependencies">
<exclude name="org/apache/fop/pdf/PDFEncryptionJCE.java" unless="jce.present"/>
</patternset>
+ <patternset id="exclude-codegen">
+ <exclude name="org/apache/fop/tools/Event*.java"/>
+ </patternset>
<property name="Name" value="Apache FOP"/>
<property name="name" value="fop"/>
<property name="NAME" value="FOP"/>
@@ -328,6 +331,7 @@ list of possible build targets.
<patternset includes="**/*.java"/>
<patternset refid="exclude-jce-dependencies"/>
<patternset refid="exclude-jai"/>
+ <patternset refid="exclude-codegen"/>
<classpath refid="libs-build-classpath"/>
<compilerarg value="-Xlint:cast"/>
</javac>
@@ -336,6 +340,7 @@ list of possible build targets.
<src path="${src.sandbox.dir}"/>
<patternset includes="**/*.java"/>
<patternset refid="exclude-jai"/>
+ <patternset refid="exclude-codegen"/>
<classpath>
<path refid="libs-build-classpath"/>
<pathelement location="${build.classes.dir}"/>
@@ -343,18 +348,17 @@ list of possible build targets.
</javac>
</target>
<target name="resourcegen" depends="compile-java">
- <mkdir dir="${build.codegen-classes.dir}"/>
- <javac destdir="${build.codegen-classes.dir}" includeAntRuntime="true">
- <src path="${src.codegen.dir}/java"/>
- <patternset includes="**/*.java"/>
+ <javac destdir="${build.classes.dir}" includeAntRuntime="true">
+ <src path="${src.java.dir}"/>
+ <patternset includes="**/tools/Event*.java"/>
<classpath>
<path refid="libs-tools-build-classpath"/>
<pathelement location="${build.classes.dir}"/>
</classpath>
</javac>
- <copy todir="${build.codegen-classes.dir}">
- <fileset dir="${src.codegen.dir}/java">
- <include name="**/*.xsl"/>
+ <copy todir="${build.classes.dir}">
+ <fileset dir="${src.resources.dir}">
+ <include name="**/tools/*.xsl"/>
</fileset>
</copy>
<taskdef name="eventResourceGenerator" classname="org.apache.fop.tools.EventProducerCollectorTask">
@@ -481,7 +485,7 @@ list of possible build targets.
<pathconvert property="manifest.classpath" dirsep="/" pathsep=" " refid="libs-build-classpath">
<map from="${basedir}${file.separator}lib${file.separator}" to=""/>
</pathconvert>
- <jar jarfile="${build.dir}/fop.jar" basedir="${build.classes.dir}">
+ <jar jarfile="${build.dir}/fop.jar">
<manifest>
<attribute name="Main-Class" value="org.apache.fop.cli.Main"/>
<attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}, Target Java ${javac.target}])"/>
@@ -496,6 +500,10 @@ list of possible build targets.
</section>
</manifest>
<metainf dir="${basedir}" includes="../LICENSE,../NOTICE"/>
+ <fileset dir="${build.classes.dir}">
+ <exclude name="**/tools/Event*.class"/>
+ <exclude name="**/tools/*.xsl"/>
+ </fileset>
</jar>
</target>
<target name="uptodate-jar-sandbox" depends="compile">