martinc     02/02/07 22:46:56

  Modified:    .        Tag: STRUTS_1_0_BRANCH build.xml
  Log:
  Port the new 'release' target from the main trunk to this branch, since we
  are about to create a new release (1.0.2) on this branch.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.52.2.4  +68 -2     jakarta-struts/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/build.xml,v
  retrieving revision 1.52.2.3
  retrieving revision 1.52.2.4
  diff -u -r1.52.2.3 -r1.52.2.4
  --- build.xml 6 Feb 2002 05:10:12 -0000       1.52.2.3
  +++ build.xml 8 Feb 2002 06:46:56 -0000       1.52.2.4
  @@ -96,6 +96,9 @@
       <!-- The base directory for distribution targets -->
       <property name="dist.home" value="dist" />
   
  +    <!-- The base directory for release targets -->
  +    <property name="release.home" value="release" />
  +
       <!-- Source directory -->
       <property name="src.dir" value="src"/>
   
  @@ -107,6 +110,21 @@
   
       <!-- Directory where test configurations files are stored -->
       <property name="conf.test.dir" value="conf/test"/>
  +
  +    <!-- Directory where binary release files are staged -->
  +    <property name="stage.bin.dir" value="${release.home}/stage/bin"/>
  +
  +    <!-- Directory where library release files are staged -->
  +    <property name="stage.lib.dir" value="${release.home}/stage/lib"/>
  +
  +    <!-- Directory where source release files are staged -->
  +    <property name="stage.src.dir" value="${release.home}/stage/src"/>
  +
  +    <!-- Directory where release builds are prepared for upload -->
  +    <property name="upload.dir" value="${release.home}/upload"/>
  +
  +    <!-- Base file name for upload files -->
  +    <property name="upload.file.base" value="${project.name}-${project.version}"/>
       
       <!-- Doc directory -->
       <property name="doc.dir" value="doc"/>
  @@ -222,7 +240,7 @@
               version="true"
               windowtitle="Apache Struts API Documentation"
               doctitle="&lt;h1&gt;Apache Struts Framework (Version 
${project.version})&lt;/h1&gt;"
  -            bottom="Copyright &#169; 2000-2001 - Apache Software Foundation"/>
  +            bottom="Copyright &#169; 2000-2002 - Apache Software Foundation"/>
       </target>
   
   <!--
  @@ -262,12 +280,59 @@
       </target>
   
   <!--
  -        Construct complete release distribution
  +        Construct complete binary distribution
   -->
       <target name="dist" depends="dist.library,dist.webapps,dist.source"
        description="Construct binary distribution"/>
   
   <!--
  +        Construct complete release distributions
  +-->
  +    <target name="release" depends="clean,dist"
  +    description="Construct release distribution">
  +        <mkdir dir="${stage.bin.dir}/${upload.file.base}"/>
  +        <mkdir dir="${stage.lib.dir}/${upload.file.base}-lib"/>
  +        <mkdir dir="${stage.src.dir}/${upload.file.base}-src"/>
  +        <copy todir="${stage.bin.dir}/${upload.file.base}">
  +            <fileset dir="${dist.home}"/>
  +        </copy>
  +        <copy todir="${stage.lib.dir}/${upload.file.base}-lib">
  +            <fileset dir="${dist.home}" includes="LICENSE"/>
  +            <fileset dir="${dist.home}/lib"/>
  +        </copy>
  +        <copy todir="${stage.src.dir}/${upload.file.base}-src">
  +            <fileset dir=".">
  +                <exclude name="build.properties"/>
  +                <exclude name="target/**"/>
  +                <exclude name="dist/**"/>
  +                <exclude name="release/**"/>
  +            </fileset>
  +        </copy>
  +        <mkdir dir="${upload.dir}"/>
  +        <zip  zipfile="${upload.dir}/${upload.file.base}.zip"
  +              basedir="${stage.bin.dir}"/>
  +        <zip  zipfile="${upload.dir}/${upload.file.base}-lib.zip"
  +              basedir="${stage.lib.dir}"/>
  +        <zip  zipfile="${upload.dir}/${upload.file.base}-src.zip"
  +              basedir="${stage.src.dir}"/>
  +        <tar  tarfile="${upload.dir}/${upload.file.base}.tar"
  +              basedir="${stage.bin.dir}"
  +             longfile="gnu"/>
  +        <tar  tarfile="${upload.dir}/${upload.file.base}-lib.tar"
  +              basedir="${stage.lib.dir}"
  +             longfile="gnu"/>
  +        <tar  tarfile="${upload.dir}/${upload.file.base}-src.tar"
  +              basedir="${stage.src.dir}"
  +             longfile="gnu"/>
  +        <gzip     src="${upload.dir}/${upload.file.base}.tar"
  +              zipfile="${upload.dir}/${upload.file.base}.tar.gz"/>
  +        <gzip     src="${upload.dir}/${upload.file.base}-lib.tar"
  +              zipfile="${upload.dir}/${upload.file.base}-lib.tar.gz"/>
  +        <gzip     src="${upload.dir}/${upload.file.base}-src.tar"
  +              zipfile="${upload.dir}/${upload.file.base}-src.tar.gz"/>
  +    </target>
  +
  +<!--
           Deploy these applications on Catalina
   -->
       <target name="deploy.catalina" depends="compile.webapps"
  @@ -360,6 +425,7 @@
        description="Clean build and distribution directories">
           <delete dir="${build.home}"/>
           <delete dir="${dist.home}"/>
  +        <delete dir="${release.home}"/>
       </target>
   
   <!--
  
  
  

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

Reply via email to