jeremias    2002/11/22 10:04:45

  Modified:    contrib/plan build.sh build.xml
  Added:       contrib/plan README build.bat
  Log:
  Updated plan build
  
  Revision  Changes    Path
  1.6       +5 -1      xml-fop/contrib/plan/build.sh
  
  Index: build.sh
  ===================================================================
  RCS file: /home/cvs/xml-fop/contrib/plan/build.sh,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.sh  20 Aug 2002 08:08:59 -0000      1.5
  +++ build.sh  22 Nov 2002 18:04:45 -0000      1.6
  @@ -12,7 +12,11 @@
     exit 1
   fi
   LIBDIR=../../lib
  
-LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xercesImpl-2.0.1.jar:$LIBDIR/xalan-2.2D11.jar:$LIBDIR/xml-apis.jar:../../build/fop.jar:$LIBDIR/avalon-framework-cvs-20020806.jar
  +LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip
  +LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/ant.jar
  +LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xml-apis.jar
  +LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xercesImpl-2.2.1.jar
  +LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xalan-2.4.1.jar
   ANT_HOME=$LIBDIR
   
   echo
  
  
  
  1.3       +20 -26    xml-fop/contrib/plan/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-fop/contrib/plan/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml 8 Mar 2002 10:12:30 -0000       1.2
  +++ build.xml 22 Nov 2002 18:04:45 -0000      1.3
  @@ -6,6 +6,15 @@
   
   <project default="package" basedir=".">
   
  +  <path id="libs-build-classpath">
  +    <fileset dir="../../lib">
  +      <include name="*.jar"/>
  +    </fileset>
  +    <fileset dir="../../build">
  +      <include name="fop.jar"/>
  +    </fileset>
  +  </path>
  +  
     <!-- =================================================================== -->
     <!-- Initialization target                                               -->
     <!-- =================================================================== -->
  @@ -20,9 +29,9 @@
       <echo message="------------------- ${Name} ${version} [${year}] 
----------------"/>
   
       <property name="build.compiler" value="classic"/>
  -    <property name="debug" value="off"/>
  -    <property name="optimize" value="on"/>
  -    <property name="deprecation" value="off"/>
  +    <property name="debug" value="on"/>
  +    <property name="optimize" value="off"/>
  +    <property name="deprecation" value="on"/>
   
       <property name="src.dir" value="./src"/>
       <property name="lib.dir" value="./lib"/>
  @@ -35,10 +44,8 @@
       <property name="resource.dir" value="resources"/>
       <property name="plan.dir" value="org/apache/fop/plan"/>
   
  -    <property name="xslt" value="org.apache.xalan.xslt.Process"/>
  -
       <property name="main.class" value="org.apache.fop.plan.Main"/>
  -    <property name="runtime.classpath" value="fop.jar xerces-1.4.3.jar 
xalan-2.4D11.jar batik.jar"/>
  +    <property name="runtime.classpath" value="fop.jar xml-apis.jar 
xercesImpl-2.2.1.jar xalan-2.4.1.jar batik.jar"/>
      
     </target>
   
  @@ -46,22 +53,7 @@
     <!-- Help on usage                                                       -->
     <!-- =================================================================== -->
     <target name="usage">
  -    <echo message=""/>
  -    <echo message=""/>
  -    <echo message="${Name} Build file"/>
  -    <echo message="-------------------------------------------------------------"/>
  -    <echo message=""/>
  -    <echo message=" available targets are:"/>
  -    <echo message=""/>
  -    <echo message="   package   --> generates the ${name}.jar file (default)"/>
  -    <echo message="   compile   --> compiles the source code"/>
  -    <echo message="   clean     --> cleans up the directory"/>
  -    <echo message="   site      --> generates the ${Name} web site (not yet 
implemented)"/>
  -    <echo message=""/>
  -    <echo message=" See the comments inside the build.xml file for more details."/>
  -    <echo message="-------------------------------------------------------------"/>
  -    <echo message=""/>
  -    <echo message=""/>
  +    <echo message="Use the -projecthelp option instead"/>
     </target>
   
     <!-- =================================================================== -->
  @@ -92,7 +84,7 @@
     <!-- =================================================================== -->
     <!-- Compiles the source directory                                       -->
     <!-- =================================================================== -->
  -  <target name="compile" depends="prepare-src">
  +  <target name="compile" depends="prepare-src" description="Compile the Java 
sources">
       <echo message="Compiling the sources "/>
       <!-- create directories -->
       <mkdir dir="${build.dest}"/>
  @@ -102,13 +94,15 @@
              debug="${debug}"
              deprecation="${deprecation}"
              optimize="${optimize}"
  -           excludes=""/>
  +           excludes="">
  +      <classpath refid="libs-build-classpath"/>
  +    </javac>
     </target>
   
     <!-- =================================================================== -->
     <!-- Creates the class package                                           -->
     <!-- =================================================================== -->
  -  <target name="package" depends="compile">
  +  <target name="package" depends="compile" description="Create jar file">
       <echo message="Creating the jar file ${build.dir}/${name}.jar"/>
       <tstamp>
         <format property="ts" pattern="yyyyMMdd-HHmmss-z"/>
  @@ -131,7 +125,7 @@
     <!-- =================================================================== -->
     <!-- Clean targets                                                       -->
     <!-- =================================================================== -->
  -  <target name="clean" depends="init">
  +  <target name="clean" depends="init" description="Cleans the build directory">
       <delete dir="${build.dir}"/>
     </target>
   
  
  
  
  1.1                  xml-fop/contrib/plan/README
  
  Index: README
  ===================================================================
  FOP Plan Readme
  
  The plan extension is an addition to FOP that can be used to produce a simple
  plan diagram with tasks etc.
  
  See docs/plan.fo for further information.
  
  
  
  1.1                  xml-fop/contrib/plan/build.bat
  
  Index: build.bat
  ===================================================================
  @echo off
  
  echo Plan Build System
  echo -------------------
  
  if "%JAVA_HOME%" == "" goto error
  
  set LIBDIR=..\..\lib
  set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip
  set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\ant.jar
  set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar
  set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar
  set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar
  
  set ANT_HOME=%LIBDIR%
  
  echo Building with classpath %LOCALCLASSPATH%
  
  echo Starting Ant...
  
  %JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath "%LOCALCLASSPATH%" 
org.apache.tools.ant.Main %1 %2 %3 %4 %5
  
  goto end
  
  :error
  
  echo ERROR: JAVA_HOME not found in your environment.
  echo Please, set the JAVA_HOME variable in your environment to match the
  echo location of the Java Virtual Machine you want to use.
  
  :end
  
  rem set LOCALCLASSPATH=
  
  pause
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to