froehlich    01/12/15 06:26:04

  Modified:    .        build.xml
  Log:
  added "prepare-scratchpad-libs" target.
  
  Revision  Changes    Path
  1.120     +21 -1     xml-cocoon2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/build.xml,v
  retrieving revision 1.119
  retrieving revision 1.120
  diff -u -r1.119 -r1.120
  --- build.xml 2001/12/12 23:30:40     1.119
  +++ build.xml 2001/12/15 14:26:04     1.120
  @@ -132,6 +132,9 @@
       <fileset dir="./lib">
         <include name="*.jar"/>
       </fileset>
  +    <fileset dir="./scratchpad/lib">
  +      <include name="*.jar"/>
  +    </fileset>
       <!-- FIXME : how to build a path that references a property set in 'init' 
target ? -->
       <pathelement path="./build/cocoon/classes"/>
     </path>
  @@ -172,6 +175,7 @@
   
       <property name="scratchpad.dir"  value="./scratchpad"/>
       <property name="scratchpad.src"  value="${scratchpad.dir}/src"/>
  +    <property name="scratchpad.lib"  value="${scratchpad.dir}/lib"/>
       <property name="scratchpad.name" value="cocoon-scratchpad"/>
   
       <property name="build.root"     value="./build"/>
  @@ -903,6 +907,22 @@
     </target>
   
     <!-- =================================================================== -->
  +  <!-- Prepares the scratchpad libraries for the war package               -->
  +  <!-- =================================================================== -->
  +  <target name="prepare-scratchpad-libs" depends="prepare-webapp-libs" 
if="include.scratchpad.libs">
  +    <copy todir="${build.war}/WEB-INF/lib">
  +      <fileset dir="${scratchpad.lib}">
  +        <include name="*.jar"/>
  +        <exclude name="ant*.jar"/>
  +        <exclude name="stylebook*.jar"/>
  +        <exclude name="servlet*.jar"/>
  +      </fileset>
  +    </copy>
  +
  +    <copy file="${build.dir}/${scratchpad.name}.jar" 
tofile="${build.war}/WEB-INF/lib/${scratchpad.name}.jar"/>
  +  </target>
  +
  +  <!-- =================================================================== -->
     <!-- Copies the tools.jar to javac.jar in web-inf/lib                    -->
     <!-- =================================================================== -->
     <target name="prepare-tools-lib" depends="package" if="tools.jar.present">
  @@ -954,7 +974,7 @@
     <!-- =================================================================== -->
     <!-- Creates the war file                                                -->
     <!-- =================================================================== -->
  -  <target name="webapp" depends="prepare-webapp, prepare-webapp-libs, prepare-xsp" 
description="* Generates the war package">
  +  <target name="webapp" depends="prepare-webapp, prepare-webapp-libs, 
prepare-scratchpad-libs, prepare-xsp" description="* Generates the war package">
       <jar jarfile="${build.dir}/${name}.war" basedir="${build.war}" includes="**"/>
     </target>
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to