jvanzyl     02/03/18 08:16:44

  Modified:    src/templates/build build-maven.xml
  Log:
  Working on the "dist" target. I think we have to add something to the
  project.xml file so that people can easily customize what needs to
  be included in distribution.
  
  Revision  Changes    Path
  1.9       +33 -10    jakarta-turbine-maven/src/templates/build/build-maven.xml
  
  Index: build-maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/templates/build/build-maven.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- build-maven.xml   17 Mar 2002 17:22:04 -0000      1.8
  +++ build-maven.xml   18 Mar 2002 16:16:44 -0000      1.9
  @@ -191,6 +191,25 @@
     <!-- D I S T R I B U T I O N S                                          -->
     <!-- ================================================================== -->
   
  +  <!--
  +  <target
  +    name="file-present">
  +    
  +    <available file="${file}" property="${file}-present"/>
  +    
  +  </target>
  +
  +  <target
  +    name="copy-file"
  +    depends="is-file-present"
  +    if="file-present">
  +    
  +    <copy todir="${todir}" file="${file}"/>
  +    
  +  </target>
  +
  +  -->
  +
     <target
       name="dist"
       depends="jar,javadocs"
  @@ -208,14 +227,17 @@
   
       <mkdir dir="${distDir}"/>
   
  -    <!-- Copy README and LICENSE -->
  -    <!--
  -    <copy todir="${distDir}" file="README.txt"/>
  -    <copy todir="${distDir}" file="LICENSE"/>
  -    -->
       <!-- Copy the project descriptor -->
       <copy todir="${distDir}" file="project.xml"/>
   
  +    <copy todir="${distDir}">
  +      <fileset dir=".">
  +        <include name="build-maven.xml"/>
  +        <include name="README.txt"/>
  +        <include name="LICENSE"/>
  +      </fileset>
  +    </copy>
  +
       <!-- Copy Jars -->
       <copy todir="${distDir}">
         <fileset dir="${build.dir}">
  @@ -261,16 +283,13 @@
         </fileset>
       </delete>
   
  -    <!--
  -    <copy todir="${distDir}" file="${maven.home}/default.properties"/>
  -    -->
  -    
       <copy todir="${distDir}" file="build.xml"/>
   
       <!-- Copy Source -->
       <copy todir="${distDir}/src">
         <fileset dir="${src.dir}">
           <include name="**/*.java"/>
  +        <include name="**/*.xml"/>
         </fileset>
       </copy>
   
  @@ -281,7 +300,11 @@
         </tarfileset>
       </tar>
   
  -    <gzip zipfile="${build.dir}/${final.name}-src.tar.gz" 
src="${build.dir}/${final.name}-src.tar"/>
  +    <gzip 
  +      zipfile="${build.dir}/${final.name}-src.tar.gz" 
  +      src="${build.dir}/${final.name}-src.tar"
  +    />
  +    
       <delete file="${build.dir}/${final.name}-src.tar"/>
   
       <!-- Create a zip file -->
  
  
  

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

Reply via email to