1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk3-create-components" default="create-components">
|
---|
3 |
|
---|
4 | <!-- create components from the distributions 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-ant-component" />
|
---|
16 | <antcall target="prepare-tomcat-component" />
|
---|
17 | <antcall target="prepare-imagemagick-component" />
|
---|
18 | </target>
|
---|
19 |
|
---|
20 | <target name="compress-components">
|
---|
21 | <antcall target="compress-core-component" />
|
---|
22 | <antcall target="compress-ant-component" />
|
---|
23 | <antcall target="compress-tomcat-component" />
|
---|
24 | <antcall target="compress-imagemagick-component" />
|
---|
25 | </target>
|
---|
26 |
|
---|
27 | <!-- 3rd level -->
|
---|
28 |
|
---|
29 | <!-- core -->
|
---|
30 | <target name="prepare-core-component">
|
---|
31 |
|
---|
32 | <delete dir="components/tmp/core"/>
|
---|
33 | <mkdir dir="components/tmp/core"/>
|
---|
34 |
|
---|
35 | <copy todir="components/tmp/core" overwrite="true">
|
---|
36 | <fileset dir="distributions/web">
|
---|
37 | <include name="**/*"/>
|
---|
38 |
|
---|
39 | <!-- exclude sourcecode -->
|
---|
40 | <exclude name="src"/>
|
---|
41 | <exclude name="src/**/*"/>
|
---|
42 | <exclude name="gs2build/common-src"/>
|
---|
43 | <exclude name="gs2build/common-src/**/*"/>
|
---|
44 | <exclude name="gs2build/build-src"/>
|
---|
45 | <exclude name="gs2build/build-src/**/*"/>
|
---|
46 | <exclude name="gs2build/runtime-src"/>
|
---|
47 | <exclude name="gs2build/runtime-src/**/*"/>
|
---|
48 | <exclude name="packages/ant"/>
|
---|
49 | <exclude name="packages/ant/**/*"/>
|
---|
50 | <exclude name="packages/tomcat"/>
|
---|
51 | <exclude name="packages/tomcat/**/*"/>
|
---|
52 | <exclude name="distributions/web/gs2build/bin/linux/imagemagick"/>
|
---|
53 | <exclude name="distributions/web/gs2build/bin/linux/imagemagick/**/*"/>
|
---|
54 |
|
---|
55 | </fileset>
|
---|
56 | </copy>
|
---|
57 |
|
---|
58 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
59 | </target>
|
---|
60 |
|
---|
61 | <target name="compress-core-component">
|
---|
62 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
63 | </target>
|
---|
64 |
|
---|
65 | <!-- ant -->
|
---|
66 | <target name="prepare-ant-component">
|
---|
67 |
|
---|
68 | <delete dir="components/tmp/ant"/>
|
---|
69 | <mkdir dir="components/tmp/ant"/>
|
---|
70 |
|
---|
71 | <copy todir="components/tmp/ant" overwrite="true">
|
---|
72 | <fileset dir="distributions/web" includes="packages/ant/**/*"/>
|
---|
73 | </copy>
|
---|
74 |
|
---|
75 | <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
|
---|
76 | </target>
|
---|
77 |
|
---|
78 | <target name="compress-ant-component">
|
---|
79 | <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
|
---|
80 | </target>
|
---|
81 |
|
---|
82 | <!-- tomcat -->
|
---|
83 | <target name="prepare-tomcat-component">
|
---|
84 |
|
---|
85 | <delete dir="components/tmp/tomcat"/>
|
---|
86 | <mkdir dir="components/tmp/tomcat"/>
|
---|
87 |
|
---|
88 | <copy todir="components/tmp/tomcat" overwrite="true">
|
---|
89 | <fileset dir="distributions/web" includes="packages/tomcat/**/*"/>
|
---|
90 | </copy>
|
---|
91 |
|
---|
92 | <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
|
---|
93 | </target>
|
---|
94 |
|
---|
95 | <target name="compress-tomcat-component">
|
---|
96 | <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
|
---|
97 | </target>
|
---|
98 |
|
---|
99 | <!-- imagemagick -->
|
---|
100 | <target name="prepare-imagemagick-component">
|
---|
101 |
|
---|
102 | <delete dir="components/tmp/imagemagick"/>
|
---|
103 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
104 |
|
---|
105 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
106 | <fileset dir="distributions/web" includes="gs2build/bin/linux/imagemagick/**/*"/>
|
---|
107 | </copy>
|
---|
108 |
|
---|
109 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
110 | </target>
|
---|
111 |
|
---|
112 | <target name="compress-imagemagick-component">
|
---|
113 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
114 | </target>
|
---|
115 |
|
---|
116 |
|
---|
117 | </project>
|
---|