[17377] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
[17422] | 2 | <project name="wirk2-create-components" default="create-components">
|
---|
[17377] | 3 |
|
---|
[17652] | 4 | <!-- create components from the distribution folder -->
|
---|
[17472] | 5 |
|
---|
[17652] | 6 | <!-- 1st level -->
|
---|
[17377] | 7 | <target name="create-components">
|
---|
[17472] | 8 | <antcall target="prepare-components" />
|
---|
| 9 | <antcall target="compress-components" />
|
---|
[17377] | 10 | </target>
|
---|
| 11 |
|
---|
[17652] | 12 | <!-- 2nd level -->
|
---|
[17472] | 13 | <target name="prepare-components">
|
---|
[17377] | 14 | <antcall target="prepare-core-component" />
|
---|
| 15 | <antcall target="prepare-imagemagick-component" />
|
---|
[17472] | 16 | <antcall target="prepare-ghostscript-component" />
|
---|
[17786] | 17 | <!--<antcall target="prepare-sourcecode-component" />-->
|
---|
[17377] | 18 | </target>
|
---|
| 19 |
|
---|
[17472] | 20 | <target name="compress-components">
|
---|
| 21 | <antcall target="compress-core-component" />
|
---|
| 22 | <antcall target="compress-imagemagick-component" />
|
---|
| 23 | <antcall target="compress-ghostscript-component" />
|
---|
[17786] | 24 | <!--<antcall target="compress-sourcecode-component" />-->
|
---|
[17377] | 25 | </target>
|
---|
| 26 |
|
---|
[17652] | 27 | <!-- 3rd level -->
|
---|
[17377] | 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" />
|
---|
[17721] | 117 | <zip destfile="components/Greenstone-${version}-win32-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
|
---|
[17377] | 118 | </target>
|
---|
| 119 |
|
---|
| 120 | <target name="compress-sourcecode-component">
|
---|
[17414] | 121 | <!-- <sevenzip task="encode" input="${basedir}/components/sourcecode.comp" output="${basedir}/components/sourcecode.lzma" dictionnary="26"/> -->
|
---|
| 122 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
|
---|
[17377] | 123 | </target>
|
---|
[17652] | 124 |
|
---|
[17377] | 125 | </project>
|
---|