[17366] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="wirk3-create-components" default="create-components">
|
---|
| 3 |
|
---|
[17652] | 4 | <!-- create components from the distribution folder -->
|
---|
[17471] | 5 |
|
---|
[17652] | 6 | <!-- 1st level -->
|
---|
[17366] | 7 | <target name="create-components">
|
---|
[17471] | 8 | <antcall target="prepare-components" />
|
---|
| 9 | <antcall target="compress-components" />
|
---|
[17366] | 10 | </target>
|
---|
[17652] | 11 |
|
---|
| 12 | <!-- 2nd level -->
|
---|
[17471] | 13 | <target name="prepare-components">
|
---|
[17366] | 14 | <antcall target="prepare-core-component" />
|
---|
| 15 | <antcall target="prepare-imagemagick-component" />
|
---|
| 16 | <antcall target="prepare-ghostscript-component" />
|
---|
[17471] | 17 | <antcall target="prepare-ant-component" />
|
---|
| 18 | <antcall target="prepare-tomcat-component" />
|
---|
[17814] | 19 |
|
---|
| 20 | <antcall target="prepare-sourcecode-component" />
|
---|
| 21 |
|
---|
| 22 | <antcall target="prepare-source-release" />
|
---|
[17366] | 23 | </target>
|
---|
| 24 |
|
---|
[17471] | 25 | <target name="compress-components">
|
---|
| 26 | <antcall target="compress-core-component" />
|
---|
| 27 | <antcall target="compress-imagemagick-component" />
|
---|
| 28 | <antcall target="compress-ghostscript-component" />
|
---|
| 29 | <antcall target="compress-ant-component" />
|
---|
| 30 | <antcall target="compress-tomcat-component" />
|
---|
[17814] | 31 |
|
---|
[17786] | 32 | <!--<antcall target="compress-sourcecode-component" />-->
|
---|
[17814] | 33 |
|
---|
| 34 | <antcall target="compress-source-release" />
|
---|
| 35 |
|
---|
[17657] | 36 | </target>
|
---|
[17366] | 37 |
|
---|
[17652] | 38 | <!-- 3rd level -->
|
---|
[17366] | 39 | <target name="prepare-core-component">
|
---|
[17427] | 40 |
|
---|
[17366] | 41 | <!-- delete old stuff to create new components -->
|
---|
[17428] | 42 | <delete dir="components/tmp/core" quiet="true"/>
|
---|
[17427] | 43 | <mkdir dir="components/tmp/core"/>
|
---|
[17366] | 44 |
|
---|
| 45 | <copy todir="components/tmp/core" overwrite="true">
|
---|
[17422] | 46 | <fileset dir="distribution/greenstone3">
|
---|
| 47 | <include name="**/*"/>
|
---|
[17366] | 48 |
|
---|
[17422] | 49 | <!-- exclude ghostscript -->
|
---|
| 50 | <exclude name="gs2build/bin/windows/ghostscript/**/*"/>
|
---|
[17471] | 51 | <exclude name="gs2build/bin/windows/ghostscript"/>
|
---|
[17422] | 52 |
|
---|
| 53 | <!-- exclude imagemagick -->
|
---|
| 54 | <exclude name="gs2build/bin/windows/imagemagick/**/*"/>
|
---|
[17471] | 55 | <exclude name="gs2build/bin/windows/imagemagick"/>
|
---|
[17422] | 56 |
|
---|
| 57 | <!-- exclude sourcecode -->
|
---|
[17447] | 58 | <exclude name="src/**/*"/>
|
---|
[17471] | 59 | <exclude name="src"/>
|
---|
[17422] | 60 | <exclude name="gs2build/common-src/**/*"/>
|
---|
[17471] | 61 | <exclude name="gs2build/common-src"/>
|
---|
[17422] | 62 | <exclude name="gs2build/build-src/**/*"/>
|
---|
[17471] | 63 | <exclude name="gs2build/build-src"/>
|
---|
[17422] | 64 | <exclude name="gs2build/runtime-src/**/*"/>
|
---|
[17471] | 65 | <exclude name="gs2build/runtime-src"/>
|
---|
[17422] | 66 |
|
---|
| 67 | <!-- exclude ant -->
|
---|
| 68 | <exclude name="packages/ant/**/*"/>
|
---|
[17471] | 69 | <exclude name="packages/ant"/>
|
---|
[17422] | 70 |
|
---|
| 71 | <!-- exclude tomcat -->
|
---|
| 72 | <exclude name="packages/tomcat/**/*"/>
|
---|
[17471] | 73 | <exclude name="packages/tomcat"/>
|
---|
[17422] | 74 |
|
---|
| 75 | </fileset>
|
---|
[17366] | 76 | </copy>
|
---|
| 77 |
|
---|
| 78 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
| 79 | </target>
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 | <target name="compress-core-component">
|
---|
| 83 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
|
---|
| 84 | </target>
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 |
|
---|
| 88 | <target name="prepare-imagemagick-component">
|
---|
[17428] | 89 | <delete dir="components/tmp/imagemagick" quiet="true"/>
|
---|
[17427] | 90 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
[17366] | 91 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
| 92 | <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
|
---|
| 93 | <include name="imagemagick/**/*"/>
|
---|
| 94 | </fileset>
|
---|
| 95 | </copy>
|
---|
| 96 |
|
---|
| 97 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
|
---|
| 98 | </target>
|
---|
| 99 |
|
---|
| 100 | <target name="compress-imagemagick-component">
|
---|
| 101 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
|
---|
| 102 | </target>
|
---|
| 103 |
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 | <target name="prepare-ghostscript-component">
|
---|
[17428] | 107 | <delete dir="components/tmp/ghostscript" quiet="true"/>
|
---|
[17427] | 108 | <mkdir dir="components/tmp/ghostscript"/>
|
---|
[17366] | 109 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
| 110 | <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
|
---|
| 111 | <include name="ghostscript/**/*"/>
|
---|
| 112 | </fileset>
|
---|
| 113 | </copy>
|
---|
| 114 |
|
---|
| 115 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
|
---|
| 116 | </target>
|
---|
| 117 |
|
---|
| 118 | <target name="compress-ghostscript-component">
|
---|
| 119 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
|
---|
| 120 | </target>
|
---|
| 121 |
|
---|
| 122 | <target name="prepare-sourcecode-component">
|
---|
[17428] | 123 | <delete dir="components/tmp/sourcecode" quiet="true"/>
|
---|
[17427] | 124 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
[17366] | 125 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
| 126 | <fileset dir="distribution/greenstone3">
|
---|
| 127 | <include name="src/**/*"/>
|
---|
| 128 | <include name="gs2build/common-src/**/*"/>
|
---|
| 129 | <include name="gs2build/build-src/**/*"/>
|
---|
| 130 | <include name="gs2build/runtime-src/**/*"/>
|
---|
| 131 | </fileset>
|
---|
| 132 | </copy>
|
---|
| 133 |
|
---|
| 134 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
|
---|
[17721] | 135 | <zip destfile="components/Greenstone-${version}-win32-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
|
---|
[17366] | 136 | </target>
|
---|
| 137 |
|
---|
| 138 | <target name="compress-sourcecode-component">
|
---|
| 139 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
|
---|
| 140 | </target>
|
---|
| 141 |
|
---|
| 142 | <target name="prepare-ant-component">
|
---|
[17428] | 143 | <delete dir="components/tmp/ant" quiet="true"/>
|
---|
[17427] | 144 | <mkdir dir="components/tmp/ant"/>
|
---|
| 145 |
|
---|
[17366] | 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>
|
---|
[17786] | 158 |
|
---|
[17366] | 159 | <target name="prepare-tomcat-component">
|
---|
[17428] | 160 | <delete dir="components/tmp/tomcat" quiet="true"/>
|
---|
[17427] | 161 | <mkdir dir="components/tmp/tomcat"/>
|
---|
[17366] | 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>
|
---|
[17814] | 174 |
|
---|
| 175 | <target name="compress-source-release">
|
---|
| 176 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 source-release.lzma source-release.comp"/></exec>
|
---|
| 177 | </target>
|
---|
[17366] | 178 |
|
---|
| 179 | </project>
|
---|