[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" />
|
---|
[17422] | 18 | </target>
|
---|
| 19 |
|
---|
[17645] | 20 | <target name="compress-components">
|
---|
| 21 | <antcall target="compress-core-component" />
|
---|
| 22 | <antcall target="compress-ant-component" />
|
---|
| 23 | <antcall target="compress-tomcat-component" />
|
---|
| 24 | <antcall target="compress-imagemagick-component" />
|
---|
[17422] | 25 | </target>
|
---|
[17645] | 26 |
|
---|
[17652] | 27 | <!-- 3rd level -->
|
---|
[17659] | 28 |
|
---|
| 29 | <!-- core -->
|
---|
[17422] | 30 | <target name="prepare-core-component">
|
---|
| 31 |
|
---|
[17446] | 32 | <delete dir="components/tmp/core"/>
|
---|
[17422] | 33 | <mkdir dir="components/tmp/core"/>
|
---|
| 34 |
|
---|
| 35 | <copy todir="components/tmp/core" overwrite="true">
|
---|
[17898] | 36 | <fileset dir="distributions/web">
|
---|
[17422] | 37 | <include name="**/*"/>
|
---|
| 38 |
|
---|
| 39 | <!-- exclude sourcecode -->
|
---|
[19953] | 40 | <!--
|
---|
[17645] | 41 | <exclude name="src"/>
|
---|
[17447] | 42 | <exclude name="src/**/*"/>
|
---|
[17645] | 43 | <exclude name="gs2build/common-src"/>
|
---|
[17422] | 44 | <exclude name="gs2build/common-src/**/*"/>
|
---|
[17645] | 45 | <exclude name="gs2build/build-src"/>
|
---|
[17422] | 46 | <exclude name="gs2build/build-src/**/*"/>
|
---|
[17645] | 47 | <exclude name="gs2build/runtime-src"/>
|
---|
[17422] | 48 | <exclude name="gs2build/runtime-src/**/*"/>
|
---|
[19953] | 49 | -->
|
---|
[17645] | 50 | <exclude name="packages/ant"/>
|
---|
[17422] | 51 | <exclude name="packages/ant/**/*"/>
|
---|
[17645] | 52 | <exclude name="packages/tomcat"/>
|
---|
[17422] | 53 | <exclude name="packages/tomcat/**/*"/>
|
---|
[17898] | 54 | <exclude name="distributions/web/gs2build/bin/linux/imagemagick"/>
|
---|
| 55 | <exclude name="distributions/web/gs2build/bin/linux/imagemagick/**/*"/>
|
---|
[17422] | 56 |
|
---|
| 57 | </fileset>
|
---|
| 58 | </copy>
|
---|
| 59 |
|
---|
| 60 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
| 61 | </target>
|
---|
| 62 |
|
---|
| 63 | <target name="compress-core-component">
|
---|
| 64 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
| 65 | </target>
|
---|
[17659] | 66 |
|
---|
| 67 | <!-- ant -->
|
---|
[17422] | 68 | <target name="prepare-ant-component">
|
---|
[17446] | 69 |
|
---|
| 70 | <delete dir="components/tmp/ant"/>
|
---|
[17422] | 71 | <mkdir dir="components/tmp/ant"/>
|
---|
[17446] | 72 |
|
---|
[17422] | 73 | <copy todir="components/tmp/ant" overwrite="true">
|
---|
[19935] | 74 | <fileset dir="distributions/web" includes="packages/ant/**/*"/>
|
---|
[17422] | 75 | </copy>
|
---|
| 76 |
|
---|
| 77 | <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
|
---|
| 78 | </target>
|
---|
| 79 |
|
---|
| 80 | <target name="compress-ant-component">
|
---|
| 81 | <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
|
---|
| 82 | </target>
|
---|
| 83 |
|
---|
[17659] | 84 | <!-- tomcat -->
|
---|
[17422] | 85 | <target name="prepare-tomcat-component">
|
---|
[17446] | 86 |
|
---|
| 87 | <delete dir="components/tmp/tomcat"/>
|
---|
[17422] | 88 | <mkdir dir="components/tmp/tomcat"/>
|
---|
[17446] | 89 |
|
---|
[17422] | 90 | <copy todir="components/tmp/tomcat" overwrite="true">
|
---|
[19935] | 91 | <fileset dir="distributions/web" includes="packages/tomcat/**/*"/>
|
---|
[17422] | 92 | </copy>
|
---|
| 93 |
|
---|
| 94 | <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
|
---|
| 95 | </target>
|
---|
| 96 |
|
---|
| 97 | <target name="compress-tomcat-component">
|
---|
| 98 | <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
|
---|
[17645] | 99 | </target>
|
---|
| 100 |
|
---|
[17659] | 101 | <!-- imagemagick -->
|
---|
[17645] | 102 | <target name="prepare-imagemagick-component">
|
---|
| 103 |
|
---|
| 104 | <delete dir="components/tmp/imagemagick"/>
|
---|
| 105 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
| 106 |
|
---|
| 107 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
[19935] | 108 | <fileset dir="distributions/web" includes="gs2build/bin/linux/imagemagick/**/*"/>
|
---|
[17645] | 109 | </copy>
|
---|
| 110 |
|
---|
| 111 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
| 112 | </target>
|
---|
| 113 |
|
---|
| 114 | <target name="compress-imagemagick-component">
|
---|
| 115 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
| 116 | </target>
|
---|
[17652] | 117 |
|
---|
[17786] | 118 |
|
---|
[17422] | 119 | </project>
|
---|