1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="wirk3-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-imagemagick-component" />
|
---|
8 | <antcall target="create-ghostscript-component" />
|
---|
9 | <antcall target="create-sourcecode-component" />
|
---|
10 | <antcall target="create-ant-component" />
|
---|
11 | <antcall target="create-tomcat-component" />
|
---|
12 | </target>
|
---|
13 |
|
---|
14 |
|
---|
15 | <target name="create-core-component">
|
---|
16 | <antcall target="prepare-core-component" />
|
---|
17 | <antcall target="compress-core-component" />
|
---|
18 | </target>
|
---|
19 |
|
---|
20 | <target name="create-imagemagick-component">
|
---|
21 | <antcall target="prepare-imagemagick-component" />
|
---|
22 | <antcall target="compress-imagemagick-component" />
|
---|
23 | </target>
|
---|
24 |
|
---|
25 |
|
---|
26 | <target name="create-ghostscript-component">
|
---|
27 | <antcall target="prepare-ghostscript-component" />
|
---|
28 | <antcall target="compress-ghostscript-component" />
|
---|
29 | </target>
|
---|
30 |
|
---|
31 |
|
---|
32 | <target name="create-sourcecode-component">
|
---|
33 | <antcall target="prepare-sourcecode-component" />
|
---|
34 | <antcall target="compress-sourcecode-component" />
|
---|
35 | </target>
|
---|
36 |
|
---|
37 |
|
---|
38 | <target name="create-ant-component">
|
---|
39 | <antcall target="prepare-ant-component" />
|
---|
40 | <antcall target="compress-ant-component" />
|
---|
41 | </target>
|
---|
42 |
|
---|
43 |
|
---|
44 | <target name="create-tomcat-component">
|
---|
45 | <antcall target="prepare-tomcat-component" />
|
---|
46 | <antcall target="compress-tomcat-component" />
|
---|
47 | </target>
|
---|
48 |
|
---|
49 |
|
---|
50 | <target name="prepare-core-component">
|
---|
51 | <!-- delete old stuff to create new components -->
|
---|
52 | <delete dir="components"/>
|
---|
53 | <mkdir dir="components"/>
|
---|
54 | <mkdir dir="components/tmp"/>
|
---|
55 |
|
---|
56 | <copy todir="components/tmp/core" overwrite="true">
|
---|
57 | <fileset dir="distribution/greenstone3">
|
---|
58 | <include name="**/*"/>
|
---|
59 |
|
---|
60 | <!-- exclude ghostscript -->
|
---|
61 | <exclude name="gs2build/bin/windows/ghostscript/**/*"/>
|
---|
62 |
|
---|
63 | <!-- exclude imagemagick -->
|
---|
64 | <exclude name="gs2build/bin/windows/imagemagick/**/*"/>
|
---|
65 |
|
---|
66 | <!-- exclude sourcecode -->
|
---|
67 | <include name="src/**/*"/>
|
---|
68 | <exclude name="gs2build/common-src/**/*"/>
|
---|
69 | <exclude name="gs2build/build-src/**/*"/>
|
---|
70 | <exclude name="gs2build/runtime-src/**/*"/>
|
---|
71 |
|
---|
72 | <!-- exclude ant -->
|
---|
73 | <exclude name="packages/ant/**/*"/>
|
---|
74 |
|
---|
75 | <!-- exclude tomcat -->
|
---|
76 | <exclude name="packages/tomcat/**/*"/>
|
---|
77 |
|
---|
78 | </fileset>
|
---|
79 | </copy>
|
---|
80 |
|
---|
81 | <!-- do some cleanup -->
|
---|
82 | <delete dir="components/tmp/core/gs2build/common-src"/>
|
---|
83 | <delete dir="components/tmp/core/gs2build/build-src"/>
|
---|
84 | <delete dir="components/tmp/core/gs2build/runtime-src"/>
|
---|
85 | <delete dir="components/tmp/core/gs2build/bin/windows/imagemagick"/>
|
---|
86 | <delete dir="components/tmp/core/gs2build/bin/windows/ghostscript"/>
|
---|
87 |
|
---|
88 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
89 | </target>
|
---|
90 |
|
---|
91 |
|
---|
92 | <target name="compress-core-component">
|
---|
93 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
|
---|
94 | </target>
|
---|
95 |
|
---|
96 |
|
---|
97 |
|
---|
98 | <target name="prepare-imagemagick-component">
|
---|
99 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
100 | <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
|
---|
101 | <include name="imagemagick/**/*"/>
|
---|
102 | </fileset>
|
---|
103 | </copy>
|
---|
104 |
|
---|
105 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
|
---|
106 | </target>
|
---|
107 |
|
---|
108 | <target name="compress-imagemagick-component">
|
---|
109 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
|
---|
110 | </target>
|
---|
111 |
|
---|
112 |
|
---|
113 |
|
---|
114 | <target name="prepare-ghostscript-component">
|
---|
115 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
116 | <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
|
---|
117 | <include name="ghostscript/**/*"/>
|
---|
118 | </fileset>
|
---|
119 | </copy>
|
---|
120 |
|
---|
121 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
|
---|
122 | </target>
|
---|
123 |
|
---|
124 | <target name="compress-ghostscript-component">
|
---|
125 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
|
---|
126 | </target>
|
---|
127 |
|
---|
128 | <target name="prepare-sourcecode-component">
|
---|
129 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
130 | <fileset dir="distribution/greenstone3">
|
---|
131 | <include name="src/**/*"/>
|
---|
132 | <include name="gs2build/common-src/**/*"/>
|
---|
133 | <include name="gs2build/build-src/**/*"/>
|
---|
134 | <include name="gs2build/runtime-src/**/*"/>
|
---|
135 | </fileset>
|
---|
136 | </copy>
|
---|
137 |
|
---|
138 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
|
---|
139 | </target>
|
---|
140 |
|
---|
141 | <target name="compress-sourcecode-component">
|
---|
142 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
|
---|
143 | </target>
|
---|
144 |
|
---|
145 | <target name="prepare-ant-component">
|
---|
146 | <copy todir="components/tmp/ant" overwrite="true">
|
---|
147 | <fileset dir="distribution/greenstone3/packages">
|
---|
148 | <include name="ant/**/*"/>
|
---|
149 | </fileset>
|
---|
150 | </copy>
|
---|
151 |
|
---|
152 | <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
|
---|
153 | </target>
|
---|
154 |
|
---|
155 | <target name="compress-ant-component">
|
---|
156 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ant.lzma ant.comp"/></exec>
|
---|
157 | </target>
|
---|
158 |
|
---|
159 |
|
---|
160 |
|
---|
161 | <target name="prepare-tomcat-component">
|
---|
162 | <copy todir="components/tmp/tomcat" overwrite="true">
|
---|
163 | <fileset dir="distribution/greenstone3/packages">
|
---|
164 | <include name="tomcat/**/*"/>
|
---|
165 | </fileset>
|
---|
166 | </copy>
|
---|
167 |
|
---|
168 | <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
|
---|
169 | </target>
|
---|
170 |
|
---|
171 | <target name="compress-tomcat-component">
|
---|
172 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 tomcat.lzma tomcat.comp"/></exec>
|
---|
173 | </target>
|
---|
174 |
|
---|
175 |
|
---|
176 |
|
---|
177 | </project>
|
---|