[17423] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="mark3-create-components" default="create-components">
|
---|
| 3 |
|
---|
| 4 | <!-- create components from the distribution folder -->
|
---|
[17652] | 5 |
|
---|
| 6 | <!-- 1st level -->
|
---|
[17423] | 7 | <target name="create-components">
|
---|
[17652] | 8 | <antcall target="prepare-components" />
|
---|
| 9 | <antcall target="compress-components" />
|
---|
[17423] | 10 | </target>
|
---|
| 11 |
|
---|
[17652] | 12 | <!-- 2nd level -->
|
---|
| 13 | <target name="prepare-components">
|
---|
[17423] | 14 | <antcall target="prepare-core-component" />
|
---|
| 15 | <antcall target="prepare-ant-component" />
|
---|
| 16 | <antcall target="prepare-tomcat-component" />
|
---|
[17663] | 17 | <antcall target="prepare-imagemagick-component" />
|
---|
| 18 | <antcall target="prepare-ghostscript-component" />
|
---|
[17786] | 19 |
|
---|
| 20 | <!--<antcall target="prepare-sourcecode-component" />-->
|
---|
[17423] | 21 | </target>
|
---|
[17652] | 22 |
|
---|
| 23 | <target name="compress-components">
|
---|
| 24 | <antcall target="compress-core-component" />
|
---|
| 25 | <antcall target="compress-ant-component" />
|
---|
| 26 | <antcall target="compress-tomcat-component" />
|
---|
[17663] | 27 | <antcall target="compress-imagemagick-component" />
|
---|
| 28 | <antcall target="compress-ghostscript-component" />
|
---|
[17786] | 29 |
|
---|
| 30 | <!--<antcall target="compress-sourcecode-component" />-->
|
---|
[17652] | 31 | </target>
|
---|
| 32 |
|
---|
| 33 | <!-- 3rd level -->
|
---|
[17659] | 34 | <!-- core -->
|
---|
[17423] | 35 | <target name="prepare-core-component">
|
---|
| 36 |
|
---|
[17453] | 37 | <delete dir="components/tmp/core"/>
|
---|
[17423] | 38 | <mkdir dir="components/tmp/core"/>
|
---|
| 39 |
|
---|
| 40 | <copy todir="components/tmp/core" overwrite="true">
|
---|
| 41 | <fileset dir="distribution/greenstone3">
|
---|
| 42 | <include name="**/*"/>
|
---|
| 43 |
|
---|
| 44 | <!-- exclude sourcecode -->
|
---|
[17660] | 45 | <exclude name="src"/>
|
---|
[17447] | 46 | <exclude name="src/**/*"/>
|
---|
[17660] | 47 | <exclude name="gs2build/common-src"/>
|
---|
[17423] | 48 | <exclude name="gs2build/common-src/**/*"/>
|
---|
[17660] | 49 | <exclude name="gs2build/build-src"/>
|
---|
[17423] | 50 | <exclude name="gs2build/build-src/**/*"/>
|
---|
[17660] | 51 | <exclude name="gs2build/runtime-src"/>
|
---|
[17423] | 52 | <exclude name="gs2build/runtime-src/**/*"/>
|
---|
| 53 |
|
---|
| 54 | <!-- exclude ant -->
|
---|
[17660] | 55 | <exclude name="packages/ant"/>
|
---|
[17423] | 56 | <exclude name="packages/ant/**/*"/>
|
---|
| 57 |
|
---|
| 58 | <!-- exclude tomcat -->
|
---|
[17660] | 59 | <exclude name="packages/tomcat"/>
|
---|
[17423] | 60 | <exclude name="packages/tomcat/**/*"/>
|
---|
| 61 |
|
---|
[17660] | 62 | <!-- exclude imagemagick -->
|
---|
| 63 | <exclude name="gs2build/bin/darwin/imagemagick"/>
|
---|
| 64 | <exclude name="gs2build/bin/darwin/imagemagick/**/*"/>
|
---|
| 65 |
|
---|
[17423] | 66 | </fileset>
|
---|
[17706] | 67 | </copy>
|
---|
[17423] | 68 |
|
---|
| 69 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
| 70 | </target>
|
---|
| 71 |
|
---|
| 72 | <target name="compress-core-component">
|
---|
| 73 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
| 74 | </target>
|
---|
| 75 |
|
---|
[17659] | 76 | <!-- sourcecode -->
|
---|
[17423] | 77 | <target name="prepare-sourcecode-component">
|
---|
[17453] | 78 |
|
---|
| 79 | <delete dir="components/tmp/sourcecode"/>
|
---|
[17423] | 80 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
[17453] | 81 |
|
---|
[17423] | 82 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
| 83 | <fileset dir="distribution/greenstone3">
|
---|
| 84 | <include name="src/**/*"/>
|
---|
| 85 | <include name="gs2build/common-src/**/*"/>
|
---|
| 86 | <include name="gs2build/build-src/**/*"/>
|
---|
| 87 | <include name="gs2build/runtime-src/**/*"/>
|
---|
| 88 | </fileset>
|
---|
| 89 | </copy>
|
---|
| 90 |
|
---|
| 91 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
|
---|
[17721] | 92 | <zip destfile="components/Greenstone-${version}-MacOS-${processor}-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/>
|
---|
[17423] | 93 | </target>
|
---|
| 94 |
|
---|
| 95 | <target name="compress-sourcecode-component">
|
---|
| 96 | <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
|
---|
| 97 | </target>
|
---|
| 98 |
|
---|
[17659] | 99 | <!-- ant -->
|
---|
[17423] | 100 | <target name="prepare-ant-component">
|
---|
[17453] | 101 |
|
---|
[17455] | 102 | <delete dir="components/tmp/ant"/>
|
---|
| 103 | <mkdir dir="components/tmp/ant"/>
|
---|
[17453] | 104 |
|
---|
[17423] | 105 | <copy todir="components/tmp/ant" overwrite="true">
|
---|
| 106 | <fileset dir="distribution/greenstone3/packages">
|
---|
| 107 | <include name="ant/**/*"/>
|
---|
| 108 | </fileset>
|
---|
| 109 | </copy>
|
---|
| 110 |
|
---|
| 111 | <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
|
---|
| 112 | </target>
|
---|
| 113 |
|
---|
| 114 | <target name="compress-ant-component">
|
---|
| 115 | <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
|
---|
| 116 | </target>
|
---|
| 117 |
|
---|
[17659] | 118 | <!-- tomcat -->
|
---|
[17423] | 119 | <target name="prepare-tomcat-component">
|
---|
[17453] | 120 |
|
---|
| 121 | <delete dir="components/tmp/tomcat"/>
|
---|
[17423] | 122 | <mkdir dir="components/tmp/tomcat"/>
|
---|
[17453] | 123 |
|
---|
[17423] | 124 | <copy todir="components/tmp/tomcat" overwrite="true">
|
---|
| 125 | <fileset dir="distribution/greenstone3/packages">
|
---|
| 126 | <include name="tomcat/**/*"/>
|
---|
| 127 | </fileset>
|
---|
| 128 | </copy>
|
---|
| 129 |
|
---|
| 130 | <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
|
---|
| 131 | </target>
|
---|
| 132 |
|
---|
| 133 | <target name="compress-tomcat-component">
|
---|
| 134 | <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
|
---|
[17659] | 135 | </target>
|
---|
[17652] | 136 |
|
---|
[17659] | 137 | <!-- imagemagick -->
|
---|
| 138 | <target name="prepare-imagemagick-component">
|
---|
[17652] | 139 |
|
---|
[17659] | 140 | <delete dir="components/tmp/imagemagick"/>
|
---|
| 141 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
| 142 |
|
---|
| 143 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
[17660] | 144 | <fileset dir="distribution/greenstone3/gs2build/bin/darwin">
|
---|
[17659] | 145 | <include name="imagemagick/**/*"/>
|
---|
[17652] | 146 | </fileset>
|
---|
| 147 | </copy>
|
---|
[17659] | 148 |
|
---|
| 149 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
[17652] | 150 | </target>
|
---|
[17659] | 151 |
|
---|
| 152 | <target name="compress-imagemagick-component">
|
---|
| 153 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
[17652] | 154 | </target>
|
---|
[17706] | 155 |
|
---|
[17663] | 156 | <!-- ghostscript -->
|
---|
| 157 | <target name="prepare-ghostscript-component">
|
---|
| 158 |
|
---|
| 159 | <delete dir="components/tmp/ghostscript"/>
|
---|
| 160 | <mkdir dir="components/tmp/ghostscript"/>
|
---|
| 161 |
|
---|
| 162 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
[17708] | 163 | <fileset dir="distribution/greenstone3/gs2build/bin/darwin">
|
---|
[17663] | 164 | <include name="ghostscript/**/*"/>
|
---|
| 165 | </fileset>
|
---|
| 166 | </copy>
|
---|
| 167 |
|
---|
| 168 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>
|
---|
| 169 | </target>
|
---|
| 170 |
|
---|
| 171 | <target name="compress-ghostscript-component">
|
---|
| 172 | <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>
|
---|
| 173 | </target>
|
---|
| 174 |
|
---|
[17423] | 175 | </project>
|
---|