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