diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-11 14:58:37 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-11 14:58:37 +0000 |
commit | dc35bae9c40d7cb30040eb0f11a4580ac2d58d89 (patch) | |
tree | fcd7e176833d0772bb038275df58abb0bf6e9068 /build.xml | |
parent | 72b1376d379540ae64e1326bd5f287d423d8c5ef (diff) | |
download | xmlgraphics-fop-dc35bae9c40d7cb30040eb0f11a4580ac2d58d89.tar.gz xmlgraphics-fop-dc35bae9c40d7cb30040eb0f11a4580ac2d58d89.zip |
Step 1 (SVN just doesn't want me to delete the old directories):
Created sandbox area (src/sandbox).
Moved MIF, PCL and SVG support to the sandbox due to their current state.
Build adjusted to build a fop-sandbox.jar (the three moved renderers automatically get registered if they are in the classpath).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 46 |
1 files changed, 38 insertions, 8 deletions
@@ -164,6 +164,7 @@ list of possible build targets. <property name="src.dir" value="${basedir}/src"/> <property name="src.codegen.dir" value="${src.dir}/codegen"/> <property name="src.java.dir" value="${src.dir}/java"/> + <property name="src.sandbox.dir" value="${src.dir}/sandbox"/> <property name="src.viewer.resources.dir" value="${src.java.dir}/org/apache/fop/render/awt/viewer/resources"/> <property name="src.viewer.images.dir" value="${src.java.dir}/org/apache/fop/render/awt/viewer/images"/> <property name="xdocs.dir" value="${src.dir}/documentation/content/xdocs"/> @@ -174,6 +175,7 @@ list of possible build targets. <property name="build.dir" value="${basedir}/build"/> <property name="build.gensrc.dir" value="${build.dir}/gensrc"/> <property name="build.classes.dir" value="${build.dir}/classes"/> + <property name="build.sandbox-classes.dir" value="${build.dir}/sandbox-classes"/> <property name="build.javadocs.dir" value="${build.dir}/javadocs"/> <property name="build.examples.dir" value="${build.dir}/examples"/> @@ -383,6 +385,23 @@ list of possible build targets. <copy todir="${build.viewer.images.dir}"> <fileset dir="${src.viewer.images.dir}"/> </copy> + + <mkdir dir="${build.sandbox-classes.dir}"/> + <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}"/> + <patternset includes="**/*.java"/> + <classpath> + <path refid="libs-build-classpath"/> + <pathelement location="${build.classes.dir}"/> + </classpath> + </javac> + <copy todir="${build.sandbox-classes.dir}"> + <fileset dir="${src.sandbox.dir}"> + <include name="META-INF/**"/> + </fileset> + </copy> </target> @@ -433,16 +452,9 @@ list of possible build targets. <tstamp> <format property="ts" pattern="yyyyMMdd-HHmmss-z"/> </tstamp> - <pathconvert property="manifest-classpath" dirsep="/" pathsep=" " refid="libs-run-classpath"> - <map from="${basedir}${file.separator}lib${file.separator}" to=""/> - <map from="${basedir}${file.separator}build${file.separator}fop.jar" to=""/> - <map from="${optional.lib.dir}${file.separator}" to=""/> - </pathconvert> - <jar jarfile="${build.dir}/fop.jar" basedir="${build.classes.dir}" includes="org/**"> <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"/> @@ -458,10 +470,27 @@ list of possible build targets. </jar> </target> + <target name="uptodate-jar-sandbox" depends="compile-java"> + <uptodate property="jar.sandbox.uptodate" targetfile="${build.dir}/fop-sandbox.jar"> + <srcfiles dir= "${build.sandbox-classes.dir}"/> + </uptodate> + </target> + + <target name="jar-sandbox" depends="compile-java,uptodate-jar-sandbox" description="Generates the sandbox jar file" unless="jar.sandbox.uptodate"> + <tstamp> + <format property="ts" pattern="yyyyMMdd-HHmmss-z"/> + </tstamp> + <jar jarfile="${build.dir}/fop-sandbox.jar" basedir="${build.sandbox-classes.dir}"> + <manifest> + <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/> + </manifest> + </jar> + </target> + <!-- =================================================================== --> <!-- Creates the class package --> <!-- =================================================================== --> - <target name="package" depends="jar-main,jar-hyphenation" description="Generates the jar files"/> + <target name="package" depends="jar-main,jar-hyphenation,jar-sandbox" description="Generates the jar files"/> <target name="servlet" depends="package" description="Generates the WAR with the sample FOP servlet"> <echo message="Creating the WAR file"/> @@ -839,6 +868,7 @@ NOTE: </classpath> <sourcepath> <pathelement path="${src.java.dir}"/> + <pathelement path="${src.sandbox.dir}"/> <pathelement path="${build.gensrc.dir}"/> <path refid="graphics-configuration-adapter"/> </sourcepath> |