commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patri...@apache.org
Subject cvs commit: jakarta-commons-sandbox/launcher build.xml
Date Fri, 18 Oct 2002 18:31:01 GMT
patrickl    2002/10/18 11:31:01

  Modified:    launcher build.xml
  Log:
  Add release target for nightly builds
  
  Revision  Changes    Path
  1.3       +43 -2     jakarta-commons-sandbox/launcher/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/launcher/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	17 Oct 2002 01:41:48 -0000	1.2
  +++ build.xml	18 Oct 2002 18:31:01 -0000	1.3
  @@ -1,4 +1,4 @@
  -<project name="Launcher" default="compile" basedir=".">
  +<project name="commons-launcher" default="compile" basedir=".">
   
   
   <!--
  @@ -57,6 +57,10 @@
     <!-- The base directory for distribution targets -->
     <property name="dist.home"               value="dist"/>
   
  +  <!-- The base directory for distribution targets -->
  +  <property name="release.home"            value="release"/>
  +  <property name="release.version"         value=""/>
  +
     <!-- The base directory for component sources -->
     <property name="source.home"             value="src/java"/>
   
  @@ -169,6 +173,7 @@
      description="Clean build and distribution directories">
       <delete    dir="${build.home}"/>
       <delete    dir="${dist.home}"/>
  +    <delete    dir="${release.home}"/>
       <delete   file="commons-${component.name}.jar"/>
     </target>
   
  @@ -276,6 +281,42 @@
       </copy>
     </target>
   
  +  <target name="release" depends="dist"
  +   description="Create release distribution">
  +
  +    <mkdir dir="${release.home}"/>
  +
  +    <!-- Create binary distributions -->
  +	<tar compression="gzip"
  +     destfile="${release.home}/${ant.project.name}-${release.version}.tar.gz">
  +	  <tarfileset dir="${dist.home}" prefix="${ant.project.name}"/>
  +	</tar>
  +	<zip
  +     destfile="${release.home}/${ant.project.name}-${release.version}.zip">
  +	  <zipfileset dir="${dist.home}" prefix="${ant.project.name}"/>
  +	</zip>
  +
  +    <!-- Create source distributions -->
  +	<tar compression="gzip"
  +     destfile="${release.home}/${ant.project.name}-src-${release.version}.tar.gz">
  +	  <tarfileset dir="${basedir}" prefix="${ant.project.name}">
  +        <exclude name="**/CVS/**"/>
  +        <exclude name="${build.home}/**"/>
  +        <exclude name="${dist.home}/**"/>
  +        <exclude name="${release.home}/**"/>
  +      </tarfileset>
  +	</tar>
  +	<zip
  +     destfile="${release.home}/${ant.project.name}-src-${release.version}.zip">
  +	  <zipfileset dir="${basedir}" prefix="${ant.project.name}">
  +        <exclude name="**/CVS/**"/>
  +        <exclude name="${build.home}/**"/>
  +        <exclude name="${dist.home}/**"/>
  +        <exclude name="${release.home}/**"/>
  +      </zipfileset>
  +	</zip>
  +
  +  </target>
   
   <!-- ========== Unit Test Targets ========================================= -->
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message