Ignore:
Timestamp:
2008-10-31T15:08:31+13:00 (15 years ago)
Author:
oranfry
Message:

started source releases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/mark3/ant-scripts/create-components.xml

    r17455 r17652  
    33
    44    <!-- create components from the distribution folder -->
     5
     6    <!-- 1st level -->
    57    <target name="create-components">
    6         <antcall target="create-core-component" />
    7         <antcall target="create-sourcecode-component" />
    8         <antcall target="create-ant-component" />
    9         <antcall target="create-tomcat-component" />
     8        <antcall target="prepare-components" />
     9        <antcall target="compress-components" />
    1010    </target>
    1111
    12     <target name="create-core-component">
     12    <!-- 2nd level -->
     13    <target name="prepare-components">
    1314        <antcall target="prepare-core-component" />
    14         <antcall target="compress-core-component" />
     15        <antcall target="prepare-sourcecode-component" />
     16        <antcall target="prepare-ant-component" />
     17        <antcall target="prepare-tomcat-component" />
     18        <antcall target="prepare-sourcecode-core-component" />
    1519    </target>
    1620
    17     <target name="create-sourcecode-component">
    18         <antcall target="prepare-sourcecode-component" />
    19         <antcall target="compress-sourcecode-component" /> 
     21    <target name="compress-components">
     22        <antcall target="compress-core-component" />
     23        <antcall target="compress-sourcecode-component" />
     24        <antcall target="compress-ant-component" />
     25        <antcall target="compress-tomcat-component" />
     26        <antcall target="compress-sourcecode-core-component" />
    2027    </target>
    21        
    22     <target name="create-ant-component">
    23         <antcall target="prepare-ant-component" />
    24         <antcall target="compress-ant-component" />
    25     </target>
    26        
    27     <target name="create-tomcat-component">
    28         <antcall target="prepare-tomcat-component" />
    29         <antcall target="compress-tomcat-component" /> 
    30     </target>
    31    
     28
     29    <!-- 3rd level -->
    3230    <target name="prepare-core-component">
    3331
     
    124122        <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
    125123    </target>   
     124
     125    <target name="prepare-sourcecode-core-component">
     126        <delete dir="components/tmp/sourcecode-core"/>
     127        <mkdir dir="components/tmp/sourcecode-core"/>
     128
     129        <copy todir="components/tmp/sourcecode-core" overwrite="true">
     130            <fileset dir="distribution/source">
     131                <include name="gli/**/*"/>
     132                <include name="docs/**/*"/>
     133                <include name="resources/**/*"/>
     134                <include name="web/**/*"/>
     135                <include name="gs2build/etc/**/*"/>
     136                <include name="gs2build/setup.bash"/>
     137                <include name="build.xml"/>
     138                <include name="build.properties"/>
     139                <include name="*.sh"/>
     140                <include name="*.txt"/>
     141            </fileset>
     142        </copy>
     143        <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
     144    </target>
     145   
     146    <target name="compress-sourcecode-core-component">
     147        <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
     148    </target>
     149
    126150   
    127151</project>
Note: See TracChangeset for help on using the changeset viewer.