xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tmil...@apache.org
Subject cvs commit: xml-xalan/java build.xml
Date Mon, 14 Jan 2002 19:34:49 GMT
tmiller     02/01/14 11:34:49

  Modified:    java     build.xml
  Log:
  added new target xsltc.bundledjar that creates a
  single jar file containing xsltc impl and support jars (bcel, java cup, etc)
  
  Revision  Changes    Path
  1.150     +55 -2     xml-xalan/java/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/build.xml,v
  retrieving revision 1.149
  retrieving revision 1.150
  diff -u -r1.149 -r1.150
  --- build.xml	11 Jan 2002 19:31:37 -0000	1.149
  +++ build.xml	14 Jan 2002 19:34:49 -0000	1.150
  @@ -41,7 +41,7 @@
   
   Copyright:
     Copyright (c) 1999-2001 The Apache Software Foundation.
  -   $Id: build.xml,v 1.149 2002/01/11 19:31:37 curcuru Exp $
  +   $Id: build.xml,v 1.150 2002/01/14 19:34:49 tmiller Exp $
   ==================================================================== -->
   
   <project name="Xalan" default="jar" basedir=".">
  @@ -173,7 +173,7 @@
     <!-- Creates output build directories and doc prerequistes               -->
     <!-- =================================================================== -->
     <target name="prepare">
  -    <echo message="Project:${Name-in-docs} version:${version} build.xml $Revision: 1.149
$"/>
  +    <echo message="Project:${Name-in-docs} version:${version} build.xml $Revision: 1.150
$"/>
       <mkdir dir="${build.dir}"/>
       <mkdir dir="${build.classes}"/>
       <!-- Note that all testing-related targets *must* depend on 
  @@ -365,6 +365,59 @@
           <include name="${xsltc.reldir}/**/*" />
         </patternset>
       </jar>
  +  </target>
  +
  +
  +  <target name="xsltc.bundledjar" depends="xsltc.compile"
  +     description="Jar xsltc, BCEL.jar, JLex.jar, java_cup.jar, runtime.jar">
  +    <!-- make a tmp directory to work in -->
  +    <delete dir="${build.dir}/xsltctmp" includeEmptyDirs="true" quiet="true"/>
  +    <mkdir  dir="${build.dir}/xsltctmp" />
  +
  +    <!-- create jar of xsltc classes in the tmp directory -->
  +    <jar jarfile="${build.dir}/xsltctmp/xsltc.jar"
  +        basedir="${build.dir}/classes"
  +        includes="org/apache/xalan/xsltc/**" />
  +
  +    <!-- copy the xsltc 3rd party support jar files to tmp dist dir -->
  +    <copy todir="${build.dir}/xsltctmp"
  +      file="${bin.dir}/BCEL.jar"/>
  +    <copy todir="${build.dir}/xsltctmp"
  +      file="${bin.dir}/JLex.jar"/>
  +    <copy todir="${build.dir}/xsltctmp"
  +      file="${bin.dir}/java_cup.jar"/>
  +    <copy todir="${build.dir}/xsltctmp"
  +      file="${bin.dir}/runtime.jar"/>
  +
  +    <!-- unjar all jars -->
  +    <unjar src="${build.dir}/xsltctmp/xsltc.jar"
  +           dest="${build.dir}/xsltctmp" />
  +    <unjar src="${build.dir}/xsltctmp/BCEL.jar"
  +           dest="${build.dir}/xsltctmp" />
  +    <unjar src="${build.dir}/xsltctmp/JLex.jar"
  +           dest="${build.dir}/xsltctmp" />
  +    <unjar src="${build.dir}/xsltctmp/java_cup.jar"
  +           dest="${build.dir}/xsltctmp" />
  +    <unjar src="${build.dir}/xsltctmp/runtime.jar"
  +           dest="${build.dir}/xsltctmp" />
  +
  +    <!-- remove jar files -->
  +    <delete file="${build.dir}/xsltctmp/xsltc.jar" />
  +    <delete file="${build.dir}/xsltctmp/BCEL.jar" />
  +    <delete file="${build.dir}/xsltctmp/JLex.jar" />
  +    <delete file="${build.dir}/xsltctmp/java_cup.jar" />
  +    <delete file="${build.dir}/xsltctmp/runtime.jar" />
  +
  +    <!-- remove old META-INF dir -->
  +    <delete dir="${build.dir}/xsltctmp/META-INF"
  +        includeEmptyDirs="true" quiet="true"/>
  +
  +    <!-- make bundled jar named xsltc.jar -->
  +    <jar jarfile="${build.dir}/xsltc.jar"
  +         basedir="${build.dir}/xsltctmp" />
  +
  +    <!-- clean up tmp directory -->
  +    <delete dir="${build.dir}/xsltctmp" includeEmptyDirs="true" quiet="true"/>
     </target>
     
     <!-- =================================================================== -->
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message