zongaro     2003/04/03 12:23:50

  Modified:    java     build.xml
  Log:
  Added a new "fulldist" target.  It builds a distribution that includes Xalan-J
  components that depend upon non-standard components that aren't part of the
  Xalan-J repository.  In particular, xsltcbrazil.jar is built under the
  "fulldist" target, but not under the ordinary "dist" target.
  
  Revision  Changes    Path
  1.188     +42 -11    xml-xalan/java/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/build.xml,v
  retrieving revision 1.187
  retrieving revision 1.188
  diff -u -r1.187 -r1.188
  --- build.xml 1 Apr 2003 21:46:35 -0000       1.187
  +++ build.xml 3 Apr 2003 20:23:50 -0000       1.188
  @@ -619,11 +619,17 @@
     </target>
   
     <!-- =================================================================== 
-->
  -  <!-- Compiles all samples that require extra components in order to      
-->
  -  <!-- compile.                                                            
-->
  +  <!-- Compiles all samples that require extra standard components in      
-->
  +  <!-- order to compile.                                                   
-->
     <!-- =================================================================== 
-->
  -  <target name="extra.samples"
  -          
depends="servlet,xsltc.applet,xsltc.brazil,xsltc.ejb,xsltc.servlet"/>
  +  <target name="extra.std.samples"
  +          depends="servlet,xsltc.applet,xsltc.ejb,xsltc.servlet"/>
  +
  +  <!-- =================================================================== 
-->
  +  <!-- Compiles all samples that require extra non-standard components in  
-->
  +  <!-- order to compile.                                                   
-->
  +  <!-- =================================================================== 
-->
  +  <target name="extra.nonstd.samples" depends="xsltc.brazil"/>
   
     <!-- =================================================================== 
-->
     <!-- Compiles the sample servlet and jars the class files.               
--> 
  @@ -859,12 +865,36 @@
     </target>
   
     <!-- =================================================================== 
-->
  -  <!-- Creates the distribution                                            
-->
  +  <!-- Creates a distribution that depends only on standard pieces         
-->
  +  <!-- =================================================================== 
-->
  +  <target name="dist" depends="build.std.dist,autodist"
  +              description="Create a .zip/.tar.gz distribution module 
containing
  +                           all components without dependencies on 
non-standard
  +                           jars that are not part of the build system." >
  +    <echo message="dist is human-useable target for distribution, with only 
standard dependencies"/>
  +  </target>
  +
  +  <!-- =================================================================== 
-->
  +  <!-- Creates a complete distribution                                     
-->
     <!-- =================================================================== 
-->
  -  <target name="dist" 
depends="jar,docs,javadocs,samples,extra.samples,xsltc.docs,autodist"
  -    description="Create a .zip/.tar.gz distribution module" >
  -    <echo message="dist is human-useable target for distribution, with all 
dependencies"/>
  +  <target name="fulldist" depends="build.nonstd.dist,autodist"
  +          description="Create a .zip/.tar.gz distribution module containing
  +                       all components.">
  +    <echo message="fulldist is human-useable target for distribution, with 
all dependencies"/>
     </target>
  +
  +  <target name="build.std.dist" depends="build.std.parts">
  +    <property name="has.nonstd.parts" value="false"/>
  +  </target>
  +
  +  <target name="build.nonstd.dist" 
depends="build.std.parts,build.nonstd.parts">
  +    <property name="has.nonstd.parts" value="true"/>
  +  </target>
  +
  +  <target name="build.std.parts"
  +          depends="jar,docs,javadocs,samples,extra.std.samples,xsltc.docs"/>
  +  <target name="build.nonstd.parts" depends="extra.nonstd.samples"/>
  +
     <target name="autodist">
       <echo message="autodist is for automated build processes, without 
dependencies"/>
       <mkdir dir="${dist.dir}"/>
  @@ -899,7 +929,8 @@
       <copy file="${build.dir}/xalansamples.jar" todir="${dist.dir}/bin"/>
       <copy file="${build.dir}/xalanservlet.war" todir="${dist.dir}/bin"/>
       <copy file="${build.dir}/xsltcapplet.jar"  todir="${dist.dir}/bin"/>
  -    <copy file="${build.dir}/xsltcbrazil.jar"  todir="${dist.dir}/bin"/>
  +    <copy file="${build.dir}/xsltcbrazil.jar"  todir="${dist.dir}/bin"
  +          failonerror="${has.nonstd.parts}"/>
       <copy file="${build.dir}/xsltcejb.jar"     todir="${dist.dir}/bin"/>
       <copy file="${build.dir}/xsltcservlet.jar" todir="${dist.dir}/bin"/>
   
  
  
  

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

Reply via email to