diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-03-01 20:47:47 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-03-01 20:47:47 +0000 |
commit | 1526176a7d4b7b8edd0a4981f000debe591832a1 (patch) | |
tree | fe273f620505939c8ea4e3060592fb0c54239c1e /build.xml | |
parent | 22b172ad42e68f3a3299476c0295fe9d14109573 (diff) | |
download | xmlgraphics-fop-1526176a7d4b7b8edd0a4981f000debe591832a1.tar.gz xmlgraphics-fop-1526176a7d4b7b8edd0a4981f000debe591832a1.zip |
Bugzilla #38821:
Re-added the Class-Path entry in the manifest.
Additional changes:
Fixed the javac.fork property.
Prepared classpaths for when xmlgraphics-commons is ready.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@382152 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -150,7 +150,7 @@ list of possible build targets. <property name="javac.deprecation" value="on"/> <property name="javac.source" value="1.3"/> <property name="javac.target" value="1.3"/> - <property name="javac.fork" value="off"/> + <property name="javac.fork" value="no"/> <property name="junit.fork" value="on"/> @@ -380,7 +380,7 @@ list of possible build targets. <target name="compile-java" depends="init, codegen" description="Compiles the source code"> <!-- create directories --> <mkdir dir="${build.classes.dir}"/> - <javac destdir="${build.classes.dir}" fork="javac.fork" debug="${javac.debug}" + <javac destdir="${build.classes.dir}" fork="${javac.fork}" debug="${javac.debug}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" source="${javac.source}" target="${javac.target}"> <src path="${build.gensrc.dir}"/> @@ -408,7 +408,7 @@ list of possible build targets. </copy> <mkdir dir="${build.sandbox-classes.dir}"/> - <javac destdir="${build.sandbox-classes.dir}" fork="javac.fork" debug="${javac.debug}" + <javac destdir="${build.sandbox-classes.dir}" fork="${javac.fork}" debug="${javac.debug}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" source="${javac.source}" target="${javac.target}"> <src path="${src.sandbox.dir}"/> @@ -473,9 +473,16 @@ list of possible build targets. <tstamp> <format property="ts" pattern="yyyyMMdd-HHmmss-z"/> </tstamp> + + <pathconvert property="manifest.classpath" dirsep="/" pathsep=" " refid="libs-build-classpath"> + <map from="${basedir}${file.separator}lib${file.separator}" to=""/> + <map from="${optional.lib.dir}${file.separator}" to=""/> + </pathconvert> + <jar jarfile="${build.dir}/fop.jar" basedir="${build.classes.dir}"> <manifest> <attribute name="Main-Class" value="org.apache.fop.cli.Main"/> + <attribute name="Class-Path" value="${manifest.classpath}"/> <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/> <section name="org/apache/fop/"> <attribute name="Specification-Title" value="XSL-FO - Extensible Stylesheet Language"/> @@ -521,6 +528,7 @@ list of possible build targets. <include name="commons-logging*.jar"/> <include name="batik*.jar"/> <include name="commons-io*.jar"/> + <include name="xmlgraphics*.jar"/> </lib> <lib dir="${build.dir}"> <include name="fop.jar"/> @@ -573,6 +581,7 @@ list of possible build targets. <include name="commons-io*.jar"/> <include name="avalon-framework*.jar"/> <include name="commons-logging*.jar"/> + <include name="xmlgraphics*.jar"/> </fileset> <target name="uptodate-transcoder-pkg" depends="compile-java"> @@ -655,7 +664,7 @@ list of possible build targets. </target> <target name="junit-compile" depends="package, transcoder-pkg, junit-with-xmlunit, junit-without-xmlunit" description="Runs FOP's JUnit tests" if="junit.present"> <mkdir dir="${build.dir}/test-classes"/> - <javac destdir="${build.dir}/test-classes" fork="javac.fork" + <javac destdir="${build.dir}/test-classes" fork="${javac.fork}" debug="${javac.debug}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" source="${javac.source}" target="${javac.target}"> |