source: release-kits/lirk3/ant-scripts/create-components.xml@ 17446

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

got the component scheme working in lirk3

File size: 4.0 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk3-create-components" default="create-components">
3
4 <!-- create components from the distribution folder -->
5 <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" />
10 </target>
11
12 <target name="create-core-component">
13 <antcall target="prepare-core-component" />
14 <antcall target="compress-core-component" />
15 </target>
16
17 <target name="create-sourcecode-component">
18 <antcall target="prepare-sourcecode-component" />
19 <antcall target="compress-sourcecode-component" />
20 </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
32 <target name="prepare-core-component">
33
34 <delete dir="components/tmp/core"/>
35 <mkdir dir="components/tmp/core"/>
36
37 <copy todir="components/tmp/core" overwrite="true">
38 <fileset dir="distribution/greenstone3">
39 <include name="**/*"/>
40
41 <!-- exclude sourcecode -->
42 <include name="src/**/*"/>
43 <exclude name="gs2build/common-src/**/*"/>
44 <exclude name="gs2build/build-src/**/*"/>
45 <exclude name="gs2build/runtime-src/**/*"/>
46
47 <!-- exclude ant -->
48 <exclude name="packages/ant/**/*"/>
49
50 <!-- exclude tomcat -->
51 <exclude name="packages/tomcat/**/*"/>
52
53 </fileset>
54 </copy>
55
56 <!-- do some cleanup -->
57 <delete dir="components/tmp/core/gs2build/common-src"/>
58 <delete dir="components/tmp/core/gs2build/build-src"/>
59 <delete dir="components/tmp/core/gs2build/runtime-src"/>
60 <delete dir="components/tmp/core/gs2build/bin/windows/imagemagick"/>
61 <delete dir="components/tmp/core/gs2build/bin/windows/ghostscript"/>
62
63 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
64 </target>
65
66 <target name="compress-core-component">
67 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
68 </target>
69
70 <target name="prepare-sourcecode-component">
71
72 <delete dir="components/tmp/sourcecode"/>
73 <mkdir dir="components/tmp/sourcecode"/>
74
75 <copy todir="components/tmp/sourcecode" overwrite="true">
76 <fileset dir="distribution/greenstone3">
77 <include name="src/**/*"/>
78 <include name="gs2build/common-src/**/*"/>
79 <include name="gs2build/build-src/**/*"/>
80 <include name="gs2build/runtime-src/**/*"/>
81 </fileset>
82 </copy>
83
84 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
85 </target>
86
87 <target name="compress-sourcecode-component">
88 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
89 </target>
90
91 <target name="prepare-ant-component">
92
93 <delete dir="components/tmp/ant"/>
94 <mkdir dir="components/tmp/ant"/>
95
96 <copy todir="components/tmp/ant" overwrite="true">
97 <fileset dir="distribution/greenstone3/packages">
98 <include name="ant/**/*"/>
99 </fileset>
100 </copy>
101
102 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
103 </target>
104
105 <target name="compress-ant-component">
106 <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
107 </target>
108
109 <target name="prepare-tomcat-component">
110
111 <delete dir="components/tmp/tomcat"/>
112 <mkdir dir="components/tmp/tomcat"/>
113
114 <copy todir="components/tmp/tomcat" overwrite="true">
115 <fileset dir="distribution/greenstone3/packages">
116 <include name="tomcat/**/*"/>
117 </fileset>
118 </copy>
119
120 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
121 </target>
122
123 <target name="compress-tomcat-component">
124 <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
125 </target>
126
127</project>
Note: See TracBrowser for help on using the repository browser.