[17377] | 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 | </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"/>
|
---|
| 39 | <mkdir dir="components"/>
|
---|
| 40 | <mkdir dir="components/tmp"/>
|
---|
| 41 |
|
---|
| 42 | <copy todir="components/tmp/core" overwrite="true">
|
---|
| 43 | <fileset dir="distributions/web">
|
---|
| 44 | <include name="gli/**/*"/>
|
---|
| 45 | <include name="bin/**/*"/>
|
---|
| 46 |
|
---|
| 47 | <exclude name="bin/windows/imagemagick/**/*"/>
|
---|
| 48 | <exclude name="bin/windows/ghostscript/**/*"/>
|
---|
| 49 |
|
---|
| 50 | <include name="cgi-bin/**/*"/>
|
---|
| 51 | <include name="etc/**/*"/>
|
---|
| 52 | <include name="mappings/**/*"/>
|
---|
| 53 | <include name="images/**/*"/>
|
---|
| 54 | <include name="perllib/**/*"/>
|
---|
| 55 | <include name="indexers/**/*"/>
|
---|
| 56 | <include name="macros/**/*"/>
|
---|
| 57 | <include name="collect/**/*"/>
|
---|
| 58 |
|
---|
| 59 | <include name="LICENSE.txt"/>
|
---|
| 60 | <include name="READMEar.txt"/>
|
---|
| 61 | <include name="READMEes.txt"/>
|
---|
| 62 | <include name="READMEen.txt"/>
|
---|
| 63 | <include name="READMEfr.txt"/>
|
---|
| 64 | <include name="READMEru.txt"/>
|
---|
| 65 | <include name="setup.bat"/>
|
---|
| 66 | <include name="server.exe"/>
|
---|
| 67 | <include name="Uninstall.jar"/>
|
---|
| 68 | <include name="gsdlsite.cfg"/>
|
---|
| 69 | </fileset>
|
---|
| 70 | </copy>
|
---|
| 71 |
|
---|
| 72 | <!-- do some cleanup -->
|
---|
| 73 | <delete dir="components/tmp/core/bin/windows/imagemagick"/>
|
---|
| 74 | <delete dir="components/tmp/core/bin/windows/ghostscript"/>
|
---|
| 75 |
|
---|
| 76 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
| 77 | </target>
|
---|
| 78 |
|
---|
| 79 |
|
---|
| 80 | <target name="compress-core-component">
|
---|
[17392] | 81 | <sevenzip task="encode" input="components/core.comp" output="components/core-anttask.lzma" dictionnary="26"/>
|
---|
[17377] | 82 | </target>
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 | <target name="prepare-imagemagick-component">
|
---|
| 87 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
| 88 | <fileset dir="distributions/web/bin/windows/">
|
---|
| 89 | <include name="imagemagick/**/*"/>
|
---|
| 90 | </fileset>
|
---|
| 91 | </copy>
|
---|
| 92 |
|
---|
| 93 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
|
---|
| 94 | </target>
|
---|
| 95 |
|
---|
| 96 | <target name="compress-imagemagick-component">
|
---|
[17392] | 97 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
[17377] | 98 | </target>
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 |
|
---|
| 102 | <target name="prepare-ghostscript-component">
|
---|
| 103 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
| 104 | <fileset dir="distributions/web/bin/windows/">
|
---|
| 105 | <include name="ghostscript/**/*"/>
|
---|
| 106 | </fileset>
|
---|
| 107 | </copy>
|
---|
| 108 |
|
---|
| 109 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
|
---|
| 110 | </target>
|
---|
| 111 |
|
---|
| 112 | <target name="compress-ghostscript-component">
|
---|
[17392] | 113 | <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
|
---|
[17377] | 114 | </target>
|
---|
| 115 |
|
---|
| 116 |
|
---|
| 117 |
|
---|
| 118 | <target name="prepare-sourcecode-component">
|
---|
| 119 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
| 120 | <fileset dir="distributions/web">
|
---|
| 121 | <include name="common-src/**/*"/>
|
---|
| 122 | <include name="runtime-src/**/*"/>
|
---|
| 123 | <include name="build-src/**/*"/>
|
---|
| 124 | </fileset>
|
---|
| 125 | </copy>
|
---|
| 126 |
|
---|
| 127 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
|
---|
| 128 | </target>
|
---|
| 129 |
|
---|
| 130 | <target name="compress-sourcecode-component">
|
---|
[17392] | 131 | <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
|
---|
[17377] | 132 | </target>
|
---|
| 133 |
|
---|
| 134 |
|
---|
| 135 | </project>
|
---|