User: user57  
  Date: 01/12/05 21:13:04

  Modified:    jboss    build.xml
  Log:
   o added source-* targets to build a free and external (tools and thirdparty)
     source release distribution.
  
  Revision  Changes    Path
  1.54      +92 -1     build/jboss/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/build/jboss/build.xml,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- build.xml 2001/12/06 03:09:20     1.53
  +++ build.xml 2001/12/06 05:13:04     1.54
  @@ -12,7 +12,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.53 2001/12/06 03:09:20 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.54 2001/12/06 05:13:04 user57 Exp $ -->
   
   <project default="main" name="JBoss/Build">
   
  @@ -296,6 +296,21 @@
       <property name="run.nightly.email.tolist" 
value="[EMAIL PROTECTED]"/>
       <property name="run.nightly.email.from" value="[EMAIL PROTECTED]"/>
       <property name="run.nightly.email.mailhost" value="localhost"/>
  +
  +    <!-- Bits for building source archives -->
  +    <patternset id="source.ignore">
  +      <exclude name="**/output/**"/>
  +    </patternset>
  +    <patternset id="source.free">
  +      <exclude name="tools/**"/>
  +      <exclude name="thirdparty/**"/>
  +      <include name="**"/>
  +    </patternset>
  +    <patternset id="source.external">
  +      <include name="tools/**"/>
  +      <include name="thirdparty/**"/>
  +    </patternset>
  +
     </target>
   
   
  @@ -1180,6 +1195,78 @@
   
   
     <!-- ================================================================== -->
  +  <!-- Source Archives                                                    -->
  +  <!-- ================================================================== -->
  +
  +  <target name="source-free-zip" depends="init"
  +       description="Builds a ZIP free source distribution.">
  +    <mkdir dir="${module.output}"/>
  +    <zip zipfile="${module.output}/${release.id}-free-src.zip">
  +      <fileset dir="${project.root}">
  +        <patternset refid="source.ignore"/>
  +        <patternset refid="source.free"/>
  +      </fileset>
  +    </zip>
  +  </target>
  +
  +  <target name="source-external-zip" depends="init"
  +       description="Builds a ZIP external source distribution.">
  +    <mkdir dir="${module.output}"/>
  +    <zip zipfile="${module.output}/${release.id}-external-src.zip">
  +      <fileset dir="${project.root}">
  +        <patternset refid="source.ignore"/>
  +        <patternset refid="source.external"/>
  +      </fileset>
  +    </zip>
  +  </target>
  +
  +  <target name="source-zip" depends="source-free-zip, source-external-zip"
  +       description="Builds a ZIP source distribution."/>
  +
  +  <target name="source-free-tar" depends="init"
  +       description="Builds a TAR free source distribution.">
  +    <mkdir dir="${module.output}"/>
  +    <tar tarfile="${module.output}/${release.id}-free-src.tar" longfile="gnu"
  +      basedir="${project.root}">
  +        <patternset refid="source.ignore"/>
  +        <patternset refid="source.free"/>
  +    </tar>
  +  </target>
  +
  +  <target name="source-external-tar" depends="init"
  +       description="Builds a TAR external source distribution.">
  +    <mkdir dir="${module.output}"/>
  +    <tar tarfile="${module.output}/${release.id}-external-src.tar" longfile="gnu"
  +      basedir="${project.root}">
  +        <patternset refid="source.ignore"/>
  +        <patternset refid="source.external"/>
  +    </tar>
  +  </target>
  +
  +  <target name="source-tar" depends="source-free-tar, source-external-tar"
  +       description="Builds a TAR source distribution."/>
  +
  +  <target name="source-free-tgz" depends="source-free-tar"
  +       description="Builds a TAR-GZIP free source distribution.">
  +    <gzip src="${module.output}/${release.id}-free-src.tar"
  +       zipfile="${module.output}/${release.id}-free-src.tgz"/>
  +  </target>
  +
  +  <target name="source-external-tgz" depends="source-external-tar"
  +       description="Builds a TAR-GZIP external source distribution.">
  +    <gzip src="${module.output}/${release.id}-external-src.tar"
  +       zipfile="${module.output}/${release.id}-external-src.tgz"/>
  +  </target>
  +
  +  <target name="source-tgz" depends="source-free-tgz, source-external-tgz"
  +       description="Builds a TAR-GZIP source distribution."/>
  +
  +  <target name="source-all"
  +       depends="source-tar, source-tgz, source-zip"
  +       description="Builds all source distributions."/>
  +
  +
  +  <!-- ================================================================== -->
     <!-- Cleaning                                                           -->
     <!-- ================================================================== -->
   
  @@ -1211,6 +1298,10 @@
     <target name="help" depends="_buildmagic:help:build"
             description="Show this help message."/>
   
  +
  +  <!-- ================================================================== -->
  +  <!-- ================================================================== -->
  +  <!-- ================================================================== -->
   
     <!--
        | NOTE: The following targets will probably be moved to external 
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to