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

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

component fixes

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