[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" />
|
---|
| 17 | <antcall target="prepare-sourcecode-component" />
|
---|
[17471] | 18 | <antcall target="prepare-ant-component" />
|
---|
| 19 | <antcall target="prepare-tomcat-component" />
|
---|
[17652] | 20 | <antcall target="prepare-sourcecode-core-component" />
|
---|
[17366] | 21 | </target>
|
---|
| 22 |
|
---|
[17471] | 23 | <target name="compress-components">
|
---|
| 24 | <antcall target="compress-core-component" />
|
---|
| 25 | <antcall target="compress-imagemagick-component" />
|
---|
| 26 | <antcall target="compress-ghostscript-component" />
|
---|
| 27 | <antcall target="compress-sourcecode-component" />
|
---|
| 28 | <antcall target="compress-ant-component" />
|
---|
| 29 | <antcall target="compress-tomcat-component" />
|
---|
[17652] | 30 | <antcall target="compress-sourcecode-core-component" />
|
---|
[17657] | 31 | </target>
|
---|
[17366] | 32 |
|
---|
[17652] | 33 | <!-- 3rd level -->
|
---|
[17366] | 34 | <target name="prepare-core-component">
|
---|
[17427] | 35 |
|
---|
[17366] | 36 | <!-- delete old stuff to create new components -->
|
---|
[17428] | 37 | <delete dir="components/tmp/core" quiet="true"/>
|
---|
[17427] | 38 | <mkdir dir="components/tmp/core"/>
|
---|
[17366] | 39 |
|
---|
| 40 | <copy todir="components/tmp/core" overwrite="true">
|
---|
[17422] | 41 | <fileset dir="distribution/greenstone3">
|
---|
| 42 | <include name="**/*"/>
|
---|
[17366] | 43 |
|
---|
[17422] | 44 | <!-- exclude ghostscript -->
|
---|
| 45 | <exclude name="gs2build/bin/windows/ghostscript/**/*"/>
|
---|
[17471] | 46 | <exclude name="gs2build/bin/windows/ghostscript"/>
|
---|
[17422] | 47 |
|
---|
| 48 | <!-- exclude imagemagick -->
|
---|
| 49 | <exclude name="gs2build/bin/windows/imagemagick/**/*"/>
|
---|
[17471] | 50 | <exclude name="gs2build/bin/windows/imagemagick"/>
|
---|
[17422] | 51 |
|
---|
| 52 | <!-- exclude sourcecode -->
|
---|
[17447] | 53 | <exclude name="src/**/*"/>
|
---|
[17471] | 54 | <exclude name="src"/>
|
---|
[17422] | 55 | <exclude name="gs2build/common-src/**/*"/>
|
---|
[17471] | 56 | <exclude name="gs2build/common-src"/>
|
---|
[17422] | 57 | <exclude name="gs2build/build-src/**/*"/>
|
---|
[17471] | 58 | <exclude name="gs2build/build-src"/>
|
---|
[17422] | 59 | <exclude name="gs2build/runtime-src/**/*"/>
|
---|
[17471] | 60 | <exclude name="gs2build/runtime-src"/>
|
---|
[17422] | 61 |
|
---|
| 62 | <!-- exclude ant -->
|
---|
| 63 | <exclude name="packages/ant/**/*"/>
|
---|
[17471] | 64 | <exclude name="packages/ant"/>
|
---|
[17422] | 65 |
|
---|
| 66 | <!-- exclude tomcat -->
|
---|
| 67 | <exclude name="packages/tomcat/**/*"/>
|
---|
[17471] | 68 | <exclude name="packages/tomcat"/>
|
---|
[17422] | 69 |
|
---|
| 70 | </fileset>
|
---|
[17366] | 71 | </copy>
|
---|
| 72 |
|
---|
| 73 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
| 74 | </target>
|
---|
| 75 |
|
---|
| 76 |
|
---|
| 77 | <target name="compress-core-component">
|
---|
| 78 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
|
---|
| 79 | </target>
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 | <target name="prepare-imagemagick-component">
|
---|
[17428] | 84 | <delete dir="components/tmp/imagemagick" quiet="true"/>
|
---|
[17427] | 85 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
[17366] | 86 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
| 87 | <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
|
---|
| 88 | <include name="imagemagick/**/*"/>
|
---|
| 89 | </fileset>
|
---|
| 90 | </copy>
|
---|
| 91 |
|
---|
| 92 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
|
---|
| 93 | </target>
|
---|
| 94 |
|
---|
| 95 | <target name="compress-imagemagick-component">
|
---|
| 96 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
|
---|
| 97 | </target>
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 | <target name="prepare-ghostscript-component">
|
---|
[17428] | 102 | <delete dir="components/tmp/ghostscript" quiet="true"/>
|
---|
[17427] | 103 | <mkdir dir="components/tmp/ghostscript"/>
|
---|
[17366] | 104 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
| 105 | <fileset dir="distribution/greenstone3/gs2build/bin/windows/">
|
---|
| 106 | <include name="ghostscript/**/*"/>
|
---|
| 107 | </fileset>
|
---|
| 108 | </copy>
|
---|
| 109 |
|
---|
| 110 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
|
---|
| 111 | </target>
|
---|
| 112 |
|
---|
| 113 | <target name="compress-ghostscript-component">
|
---|
| 114 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
|
---|
| 115 | </target>
|
---|
| 116 |
|
---|
| 117 | <target name="prepare-sourcecode-component">
|
---|
[17428] | 118 | <delete dir="components/tmp/sourcecode" quiet="true"/>
|
---|
[17427] | 119 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
[17366] | 120 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
| 121 | <fileset dir="distribution/greenstone3">
|
---|
| 122 | <include name="src/**/*"/>
|
---|
| 123 | <include name="gs2build/common-src/**/*"/>
|
---|
| 124 | <include name="gs2build/build-src/**/*"/>
|
---|
| 125 | <include name="gs2build/runtime-src/**/*"/>
|
---|
| 126 | </fileset>
|
---|
| 127 | </copy>
|
---|
| 128 |
|
---|
| 129 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
|
---|
[17721] | 130 | <zip destfile="components/Greenstone-${version}-win32-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
|
---|
[17366] | 131 | </target>
|
---|
| 132 |
|
---|
| 133 | <target name="compress-sourcecode-component">
|
---|
| 134 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
|
---|
| 135 | </target>
|
---|
| 136 |
|
---|
| 137 | <target name="prepare-ant-component">
|
---|
[17428] | 138 | <delete dir="components/tmp/ant" quiet="true"/>
|
---|
[17427] | 139 | <mkdir dir="components/tmp/ant"/>
|
---|
| 140 |
|
---|
[17366] | 141 | <copy todir="components/tmp/ant" overwrite="true">
|
---|
| 142 | <fileset dir="distribution/greenstone3/packages">
|
---|
| 143 | <include name="ant/**/*"/>
|
---|
| 144 | </fileset>
|
---|
| 145 | </copy>
|
---|
| 146 |
|
---|
| 147 | <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
|
---|
| 148 | </target>
|
---|
| 149 |
|
---|
| 150 | <target name="compress-ant-component">
|
---|
| 151 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ant.lzma ant.comp"/></exec>
|
---|
| 152 | </target>
|
---|
| 153 |
|
---|
| 154 |
|
---|
| 155 |
|
---|
| 156 | <target name="prepare-tomcat-component">
|
---|
[17428] | 157 | <delete dir="components/tmp/tomcat" quiet="true"/>
|
---|
[17427] | 158 | <mkdir dir="components/tmp/tomcat"/>
|
---|
[17366] | 159 | <copy todir="components/tmp/tomcat" overwrite="true">
|
---|
| 160 | <fileset dir="distribution/greenstone3/packages">
|
---|
| 161 | <include name="tomcat/**/*"/>
|
---|
| 162 | </fileset>
|
---|
| 163 | </copy>
|
---|
| 164 |
|
---|
| 165 | <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
|
---|
| 166 | </target>
|
---|
| 167 |
|
---|
| 168 | <target name="compress-tomcat-component">
|
---|
| 169 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 tomcat.lzma tomcat.comp"/></exec>
|
---|
| 170 | </target>
|
---|
| 171 |
|
---|
[17652] | 172 | <target name="prepare-sourcecode-core-component">
|
---|
| 173 | <delete dir="components/tmp/sourcecode-core"/>
|
---|
| 174 | <mkdir dir="components/tmp/sourcecode-core"/>
|
---|
| 175 |
|
---|
| 176 | <copy todir="components/tmp/sourcecode-core" overwrite="true">
|
---|
| 177 | <fileset dir="distribution/source">
|
---|
| 178 | <include name="gli/**/*"/>
|
---|
| 179 | <include name="docs/**/*"/>
|
---|
| 180 | <include name="resources/**/*"/>
|
---|
| 181 | <include name="web/**/*"/>
|
---|
| 182 | <include name="gs2build/etc/**/*"/>
|
---|
| 183 | <include name="gs2build/setup.bash"/>
|
---|
| 184 | <include name="build.xml"/>
|
---|
| 185 | <include name="build.properties"/>
|
---|
| 186 | <include name="*.sh"/>
|
---|
| 187 | <include name="*.txt"/>
|
---|
| 188 | </fileset>
|
---|
| 189 | </copy>
|
---|
| 190 | <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
|
---|
| 191 | </target>
|
---|
[17366] | 192 |
|
---|
[17652] | 193 | <target name="compress-sourcecode-core-component">
|
---|
| 194 | <!--<sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>-->
|
---|
| 195 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode-core.lzma sourcecode-core.comp"/></exec>
|
---|
| 196 | </target>
|
---|
| 197 |
|
---|
| 198 |
|
---|
[17366] | 199 |
|
---|
[17652] | 200 |
|
---|
[17366] | 201 | </project>
|
---|