[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 |
|
---|
[19964] | 39 | <!-- exclude all components -->
|
---|
[17645] | 40 | <exclude name="packages/ant"/>
|
---|
[17422] | 41 | <exclude name="packages/ant/**/*"/>
|
---|
[17645] | 42 | <exclude name="packages/tomcat"/>
|
---|
[17422] | 43 | <exclude name="packages/tomcat/**/*"/>
|
---|
[17898] | 44 | <exclude name="distributions/web/gs2build/bin/linux/imagemagick"/>
|
---|
| 45 | <exclude name="distributions/web/gs2build/bin/linux/imagemagick/**/*"/>
|
---|
[17422] | 46 |
|
---|
| 47 | </fileset>
|
---|
| 48 | </copy>
|
---|
| 49 |
|
---|
| 50 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
| 51 | </target>
|
---|
| 52 |
|
---|
| 53 | <target name="compress-core-component">
|
---|
| 54 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
| 55 | </target>
|
---|
[17659] | 56 |
|
---|
| 57 | <!-- ant -->
|
---|
[17422] | 58 | <target name="prepare-ant-component">
|
---|
[17446] | 59 |
|
---|
| 60 | <delete dir="components/tmp/ant"/>
|
---|
[17422] | 61 | <mkdir dir="components/tmp/ant"/>
|
---|
[17446] | 62 |
|
---|
[17422] | 63 | <copy todir="components/tmp/ant" overwrite="true">
|
---|
[19935] | 64 | <fileset dir="distributions/web" includes="packages/ant/**/*"/>
|
---|
[17422] | 65 | </copy>
|
---|
| 66 |
|
---|
| 67 | <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />
|
---|
| 68 | </target>
|
---|
| 69 |
|
---|
| 70 | <target name="compress-ant-component">
|
---|
| 71 | <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>
|
---|
| 72 | </target>
|
---|
| 73 |
|
---|
[17659] | 74 | <!-- tomcat -->
|
---|
[17422] | 75 | <target name="prepare-tomcat-component">
|
---|
[17446] | 76 |
|
---|
| 77 | <delete dir="components/tmp/tomcat"/>
|
---|
[17422] | 78 | <mkdir dir="components/tmp/tomcat"/>
|
---|
[17446] | 79 |
|
---|
[17422] | 80 | <copy todir="components/tmp/tomcat" overwrite="true">
|
---|
[19935] | 81 | <fileset dir="distributions/web" includes="packages/tomcat/**/*"/>
|
---|
[17422] | 82 | </copy>
|
---|
| 83 |
|
---|
| 84 | <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />
|
---|
| 85 | </target>
|
---|
| 86 |
|
---|
| 87 | <target name="compress-tomcat-component">
|
---|
| 88 | <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
|
---|
[17645] | 89 | </target>
|
---|
| 90 |
|
---|
[17659] | 91 | <!-- imagemagick -->
|
---|
[17645] | 92 | <target name="prepare-imagemagick-component">
|
---|
| 93 |
|
---|
| 94 | <delete dir="components/tmp/imagemagick"/>
|
---|
| 95 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
| 96 |
|
---|
| 97 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
[19935] | 98 | <fileset dir="distributions/web" includes="gs2build/bin/linux/imagemagick/**/*"/>
|
---|
[17645] | 99 | </copy>
|
---|
| 100 |
|
---|
| 101 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
| 102 | </target>
|
---|
| 103 |
|
---|
| 104 | <target name="compress-imagemagick-component">
|
---|
| 105 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
| 106 | </target>
|
---|
[17652] | 107 |
|
---|
[17786] | 108 |
|
---|
[17422] | 109 | </project>
|
---|