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 ad...@apache.org on 2005/03/21 21:17:15 UTC

cvs commit: xml-fop build.xml fop.bat fop.sh

adelmelle    2005/03/21 12:17:15

  Modified:    .        build.xml fop.bat fop.sh
  Log:
  Added 'hyphenation-jar' build target,
  Upated startup scripts to include the compiled jar-file
  
  Revision  Changes    Path
  1.119     +15 -3     xml-fop/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-fop/build.xml,v
  retrieving revision 1.118
  retrieving revision 1.119
  diff -u -r1.118 -r1.119
  --- build.xml	14 Mar 2005 08:51:26 -0000	1.118
  +++ build.xml	21 Mar 2005 20:17:15 -0000	1.119
  @@ -124,6 +124,7 @@
       <path refid="libs-basic-run-classpath"/>
       <fileset dir="${basedir}/build">
         <include name="fop.jar"/>
  +      <include name="fop-hyph.jar" />
       </fileset>
     </path>
   
  @@ -187,7 +188,7 @@
       <property name="xdocs.dir" value="${src.dir}/documentation/content/xdocs"/>
       <property name="fo.examples.dir" value="${basedir}/examples/fo/basic"/>
       <property name="lib.dir" value="${basedir}/lib"/>
  -    <property name="hyph.dir" value="${src.dir}/hyph"/>
  +    <property name="hyph.dir" value="${basedir}/hyph"/>
       <property name="conf.dir" value="${basedir}/conf"/>
       <property name="packages" value="org.apache.fop.*"/>
   
  @@ -484,6 +485,17 @@
                targetDir="${user.hyphdest.dir}"/>
     </target>
   
  +  <target name="hyphenation-jar" depends="hyphenation">
  +    <jar jarfile="${build.dir}/fop-hyph.jar" basedir="${build.dest}" includes="hyph/**">
  +      <manifest>
  +        <attribute name="Implementation-Title" value="${Name}"/>
  +        <attribute name="Implementation-Version" value="${version}"/>
  +        <attribute name="Implementation-Vendor" value="The Apache Software Foundation (http://xml.apache.org/fop/)"/>
  +        <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
  +      </manifest>
  +    </jar>
  +  </target>
  +  
     <target name="uptodate-jar" depends="compile, hyphenation">
       <uptodate property="jar.uptodate" targetfile="${build.dir}/${name}.jar">
         <srcfiles dir= "${build.dest}"/>
  @@ -492,7 +504,7 @@
     <!-- =================================================================== -->
     <!-- Creates the class package                                           -->
     <!-- =================================================================== -->
  -  <target name="package" depends="compile,hyphenation,uptodate-jar" description="Generates the jar files" unless="jar.uptodate">
  +  <target name="package" depends="compile,hyphenation-jar,uptodate-jar" description="Generates the jar files" unless="jar.uptodate">
       <echo message="Creating the jar file ${build.dir}/${name}.jar"/>
   
       <tstamp>
  @@ -504,7 +516,7 @@
         <map from="${optional.lib.dir}${file.separator}" to=""/>
       </pathconvert>
   
  -    <jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" includes="org/**,hyph/**">
  +    <jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" includes="org/**">
         <manifest>
           <attribute name="Main-Class" value="${main.class}"/>
           <attribute name="Class-Path" value="${manifest-classpath}"/>
  
  
  
  1.23      +4 -0      xml-fop/fop.bat
  
  Index: fop.bat
  ===================================================================
  RCS file: /home/cvs/xml-fop/fop.bat,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- fop.bat	6 Dec 2004 12:31:17 -0000	1.22
  +++ fop.bat	21 Mar 2005 20:17:15 -0000	1.23
  @@ -37,7 +37,9 @@
   rem set LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO
   
   set LIBDIR=%LOCAL_FOP_HOME%lib
  +
   set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
  +set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.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
  @@ -48,6 +50,8 @@
   set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
   set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
   set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
  +set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar
  +set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%
   
   java %LOGCHOICE% %LOGLEVEL% -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %FOP_CMD_LINE_ARGS%
   
  
  
  
  1.7       +9 -2      xml-fop/fop.sh
  
  Index: fop.sh
  ===================================================================
  RCS file: /home/cvs/xml-fop/fop.sh,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- fop.sh	18 Apr 2004 22:39:02 -0000	1.6
  +++ fop.sh	21 Mar 2005 20:17:15 -0000	1.7
  @@ -46,6 +46,8 @@
   if $cygwin ; then
     [ -n "$FOP_HOME" ] &&
       FOP_HOME=`cygpath --unix "$FOP_HOME"`
  +  [ -n "$FOP_HYPHENATION_PATH" ] &&
  +    FOP_HYPHENATION_PATH=`cygpath --unix "$FOP_HYPHENATION_PATH"`
     [ -n "$JAVA_HOME" ] &&
       JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
     [ -n "$CLASSPATH" ] &&
  @@ -75,8 +77,8 @@
     LOCALCLASSPATH=$CLASSPATH
   fi
   
  -# add fop.jar, which resides in $FOP_HOME/build
  -LOCALCLASSPATH=${FOP_HOME}/build/fop.jar:$LOCALCLASSPATH
  +# add fop.jar and fop-hyph.jar, which reside in $FOP_HOME/build
  +LOCALCLASSPATH=${FOP_HOME}/build/fop.jar:${FOP_HOME}/build/fop-hyph.jar:$LOCALCLASSPATH
   
   # add in the dependency .jar files, which reside in $FOP_HOME/lib
   DIRLIBS=${FOP_HOME}/lib/*.jar
  @@ -93,6 +95,11 @@
       fi
   done
   
  +# add in user-defined hyphenation JARs
  +if [ -n "$FOP_HYPHENATION_PATH" ] ; then
  +  LOCALCLASSPATH=$LOCALCLASSPATH:$FOP_HYPHENATION_PATH
  +fi
  +
   # For Cygwin, switch paths to Windows format before running java
   if $cygwin; then
     FOP_HOME=`cygpath --path --windows "$FOP_HOME"`
  
  
  

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