root/release-kits/mark2/ant-scripts/create-components.xml @ 17652

Revision 17652, 3.3 KB (checked in by oranfry, 11 years ago)

started source releases

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark2-create-components" default="create-components">
3
4    <!-- create components from the distribution folder -->
5
6    <!-- 1st level -->
7    <target name="create-components">
8        <antcall target="prepare-components" />
9        <antcall target="compress-components" />
10    </target>
11
12    <!-- 2nd level -->
13    <target name="prepare-components">
14        <antcall target="prepare-core-component" />
15        <antcall target="prepare-sourcecode-component" />
16        <antcall target="prepare-sourcecode-core-component" />
17    </target>
18   
19    <target name="compress-components">
20        <antcall target="compress-core-component" />
21        <antcall target="compress-sourcecode-component" />
22        <antcall target="compress-sourcecode-core-component" />
23    </target>
24
25    <!-- 3rd level -->
26    <target name="create-core-component">
27        <antcall target="prepare-core-component" />
28        <antcall target="compress-core-component" />
29    </target>
30
31    <target name="create-sourcecode-component">
32        <antcall target="prepare-sourcecode-component" />
33        <antcall target="compress-sourcecode-component" /> 
34    </target>
35   
36    <target name="prepare-core-component">
37
38        <delete dir="components/tmp/core"/>
39        <mkdir dir="components/tmp/core"/>
40
41        <copy todir="components/tmp/core" overwrite="true">
42            <fileset dir="distributions/web">
43                <include name="**/*"/>
44
45                <!-- exclude sourcecode -->
46                <exclude name="common-src"/>
47                <exclude name="common-src/**/*"/>
48                <exclude name="runtime-src"/>
49                <exclude name="runtime-src/**/*"/>
50                <exclude name="build-src"/>
51                <exclude name="build-src/**/*"/>
52
53            </fileset>
54        </copy>
55        <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
56    </target>
57   
58    <target name="compress-core-component">
59        <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
60    </target>
61   
62    <target name="prepare-sourcecode-component">
63
64        <delete dir="components/tmp/sourcecode"/>
65        <mkdir dir="components/tmp/sourcecode"/>
66
67        <copy todir="components/tmp/sourcecode" overwrite="true">
68            <fileset dir="distributions/web">
69                <include name="common-src/**/*"/>
70                <include name="runtime-src/**/*"/>
71                <include name="build-src/**/*"/>
72            </fileset>
73        </copy>
74               
75        <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" includes="**/*"/>
76    </target>
77       
78    <target name="compress-sourcecode-component">
79        <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
80    </target>
81   
82    <target name="prepare-sourcecode-core-component">
83        <delete dir="components/tmp/sourcecode-core"/>
84        <mkdir dir="components/tmp/sourcecode-core"/>
85
86        <copy todir="components/tmp/sourcecode-core" overwrite="true">
87            <fileset dir="distributions/source">
88                <include name="macros/**/*"/>
89                <include name="images/**/*"/>
90                <include name="etc/**/*"/>
91                <include name="gli/**/*"/>
92                <include name="collect/**/*"/>
93                <include name="doc/**/*"/>
94                <include name="setup.bash"/>
95            </fileset>
96        </copy>
97        <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
98    </target>
99   
100    <target name="compress-sourcecode-core-component">
101        <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
102    </target>
103
104</project>
Note: See TracBrowser for help on using the browser.