source: release-kits/lirk2/ant-scripts/create-components.xml@ 17396

Last change on this file since 17396 was 17396, checked in by oranfry, 16 years ago

componentised releases in wirk2

File size: 2.2 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk2-create-components" default="create-components">
3
4 <!-- create components from the distribution folder -->
5 <target name="create-components">
6 <antcall target="prepare-to-create-components" />
7 <antcall target="create-core-component" />
8 <antcall target="create-sourcecode-component" />
9 </target>
10
11 <target name="prepare-to-create-components">
12 <delete dir="components"/>
13 <mkdir dir="components/tmp"/>
14 </target>
15
16 <target name="create-core-component">
17 <antcall target="prepare-core-component" />
18 <antcall target="compress-core-component" />
19 </target>
20
21 <target name="create-sourcecode-component">
22 <antcall target="prepare-sourcecode-component" />
23 <antcall target="compress-sourcecode-component" />
24 </target>
25
26 <target name="prepare-core-component">
27 <mkdir dir="components/tmp/core"/>
28 <copy todir="components/tmp/core" overwrite="true">
29 <fileset dir="distributions/web">
30 <include name="gli/**/*"/>
31 <include name="bin/**/*"/>
32 <include name="cgi-bin/**/*"/>
33 <include name="etc/**/*"/>
34 <include name="mappings/**/*"/>
35 <include name="images/**/*"/>
36 <include name="perllib/**/*"/>
37 <include name="indexers/**/*"/>
38 <include name="macros/**/*"/>
39 <include name="collect/**/*"/>
40 <include name="*"/>
41 </fileset>
42 </copy>
43 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
44 </target>
45
46 <target name="compress-core-component">
47 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
48 </target>
49
50 <target name="prepare-sourcecode-component">
51 <mkdir dir="components/tmp/sourcecode"/>
52 <copy todir="components/tmp/sourcecode" overwrite="true">
53 <fileset dir="distributions/web">
54 <include name="common-src/**/*"/>
55 <include name="runtime-src/**/*"/>
56 <include name="build-src/**/*"/>
57 </fileset>
58 </copy>
59
60 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" includes="**/*"/>
61 </target>
62
63 <target name="compress-sourcecode-component">
64 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
65 </target>
66
67</project>
Note: See TracBrowser for help on using the repository browser.