source: release-kits/wirk2/ant-scripts/create-components.xml@ 17447

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

corrected a typo that was making the component sizes too big

File size: 4.6 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk2-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 </target>
11
12
13 <target name="create-core-component">
14 <antcall target="prepare-core-component" />
15 <antcall target="compress-core-component" />
16 </target>
17
18 <target name="create-imagemagick-component">
19 <antcall target="prepare-imagemagick-component" />
20 <antcall target="compress-imagemagick-component" />
21 </target>
22
23
24 <target name="create-ghostscript-component">
25 <antcall target="prepare-ghostscript-component" />
26 <antcall target="compress-ghostscript-component" />
27 </target>
28
29
30 <target name="create-sourcecode-component">
31 <antcall target="prepare-sourcecode-component" />
32 <antcall target="compress-sourcecode-component" />
33 </target>
34
35
36 <target name="prepare-core-component">
37 <!-- delete old stuff to create new components -->
38 <delete dir="components/tmp/core" quiet="true"/>
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 imagemagick -->
46 <exclude name="bin/windows/imagemagick"/>
47 <exclude name="bin/windows/imagemagick/"/>
48 <exclude name="bin/windows/imagemagick/**/*"/>
49
50 <!-- exclude ghostscript -->
51 <exclude name="bin/windows/ghostscript"/>
52 <exclude name="bin/windows/ghostscript/**/*"/>
53
54 <!-- exclude sourcecode -->
55 <exclude name="common-src"/>
56 <exclude name="common-src/**/*"/>
57 <exclude name="runtime-src"/>
58 <exclude name="runtime-src/**/*"/>
59 <exclude name="build-src"/>
60 <exclude name="build-src/**/*"/>
61
62 </fileset>
63 </copy>
64
65 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
66 </target>
67
68
69 <target name="compress-core-component">
70 <!-- <sevenzip task="encode" input="${basedir}/components/core.comp" output="${basedir}/components/core.lzma" dictionnary="26"/> -->
71 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
72 </target>
73
74
75
76 <target name="prepare-imagemagick-component">
77 <delete dir="components/tmp/imagemagick" quiet="true"/>
78 <mkdir dir="components/tmp/imagemagick"/>
79 <copy todir="components/tmp/imagemagick" overwrite="true">
80 <fileset dir="distributions/web/bin/windows/">
81 <include name="imagemagick/**/*"/>
82 </fileset>
83 </copy>
84
85 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
86 </target>
87
88 <target name="compress-imagemagick-component">
89 <!-- <sevenzip task="encode" input="${basedir}/components/imagemagick.comp" output="${basedir}/components/imagemagick.lzma" dictionnary="26"/> -->
90 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
91 </target>
92
93
94
95 <target name="prepare-ghostscript-component">
96 <delete dir="components/tmp/ghostscript" quiet="true"/>
97 <mkdir dir="components/tmp/ghostscript"/>
98 <copy todir="components/tmp/ghostscript" overwrite="true">
99 <fileset dir="distributions/web/bin/windows/">
100 <include name="ghostscript/**/*"/>
101 </fileset>
102 </copy>
103
104 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
105 </target>
106
107 <target name="compress-ghostscript-component">
108 <!-- <sevenzip task="encode" input="${basedir}/components/ghostscript.comp" output="${basedir}/components/ghostscript.lzma" dictionnary="26"/> -->
109 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
110 </target>
111
112
113
114 <target name="prepare-sourcecode-component">
115 <delete dir="components/tmp/sourcecode" quiet="true"/>
116 <mkdir dir="components/tmp/sourcecode"/>
117 <copy todir="components/tmp/sourcecode" overwrite="true">
118 <fileset dir="distributions/web">
119 <include name="common-src/**/*"/>
120 <include name="runtime-src/**/*"/>
121 <include name="build-src/**/*"/>
122 </fileset>
123 </copy>
124
125 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
126 </target>
127
128 <target name="compress-sourcecode-component">
129 <!-- <sevenzip task="encode" input="${basedir}/components/sourcecode.comp" output="${basedir}/components/sourcecode.lzma" dictionnary="26"/> -->
130 <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
131 </target>
132
133
134</project>
Note: See TracBrowser for help on using the repository browser.