You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2006/03/01 21:47:48 UTC

svn commit: r382152 - /xmlgraphics/fop/trunk/build.xml

Author: jeremias
Date: Wed Mar  1 12:47:47 2006
New Revision: 382152

URL: http://svn.apache.org/viewcvs?rev=382152&view=rev
Log:
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.

Modified:
    xmlgraphics/fop/trunk/build.xml

Modified: xmlgraphics/fop/trunk/build.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/build.xml?rev=382152&r1=382151&r2=382152&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/build.xml (original)
+++ xmlgraphics/fop/trunk/build.xml Wed Mar  1 12:47:47 2006
@@ -150,7 +150,7 @@
   <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 @@
   <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 @@
     </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 @@
     <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 @@
         <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 @@
     <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 @@
   </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}">



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org