[17423] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="mark2-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>
|
---|
[17652] | 11 |
|
---|
| 12 | <!-- 2nd level -->
|
---|
| 13 | <target name="prepare-components">
|
---|
| 14 | <antcall target="prepare-core-component" />
|
---|
| 15 | <antcall target="prepare-sourcecode-component" />
|
---|
| 16 | <antcall target="prepare-sourcecode-core-component" />
|
---|
| 17 | </target>
|
---|
[17423] | 18 |
|
---|
[17652] | 19 | <target name="compress-components">
|
---|
| 20 | <antcall target="compress-core-component" />
|
---|
| 21 | <antcall target="compress-sourcecode-component" />
|
---|
| 22 | <antcall target="compress-sourcecode-core-component" />
|
---|
| 23 | </target>
|
---|
| 24 |
|
---|
| 25 | <!-- 3rd level -->
|
---|
[17423] | 26 | <target name="create-core-component">
|
---|
| 27 | <antcall target="prepare-core-component" />
|
---|
| 28 | <antcall target="compress-core-component" />
|
---|
| 29 | </target>
|
---|
| 30 |
|
---|
| 31 | <target name="create-sourcecode-component">
|
---|
| 32 | <antcall target="prepare-sourcecode-component" />
|
---|
| 33 | <antcall target="compress-sourcecode-component" />
|
---|
| 34 | </target>
|
---|
| 35 |
|
---|
| 36 | <target name="prepare-core-component">
|
---|
[17453] | 37 |
|
---|
| 38 | <delete dir="components/tmp/core"/>
|
---|
[17423] | 39 | <mkdir dir="components/tmp/core"/>
|
---|
[17453] | 40 |
|
---|
[17423] | 41 | <copy todir="components/tmp/core" overwrite="true">
|
---|
| 42 | <fileset dir="distributions/web">
|
---|
| 43 | <include name="**/*"/>
|
---|
| 44 |
|
---|
[17652] | 45 | <!-- exclude sourcecode -->
|
---|
| 46 | <exclude name="common-src"/>
|
---|
[17423] | 47 | <exclude name="common-src/**/*"/>
|
---|
[17652] | 48 | <exclude name="runtime-src"/>
|
---|
[17423] | 49 | <exclude name="runtime-src/**/*"/>
|
---|
[17652] | 50 | <exclude name="build-src"/>
|
---|
[17423] | 51 | <exclude name="build-src/**/*"/>
|
---|
| 52 |
|
---|
| 53 | </fileset>
|
---|
| 54 | </copy>
|
---|
| 55 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
| 56 | </target>
|
---|
| 57 |
|
---|
| 58 | <target name="compress-core-component">
|
---|
| 59 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
| 60 | </target>
|
---|
| 61 |
|
---|
| 62 | <target name="prepare-sourcecode-component">
|
---|
[17453] | 63 |
|
---|
| 64 | <delete dir="components/tmp/sourcecode"/>
|
---|
[17423] | 65 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
[17453] | 66 |
|
---|
[17423] | 67 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
| 68 | <fileset dir="distributions/web">
|
---|
| 69 | <include name="common-src/**/*"/>
|
---|
| 70 | <include name="runtime-src/**/*"/>
|
---|
| 71 | <include name="build-src/**/*"/>
|
---|
| 72 | </fileset>
|
---|
| 73 | </copy>
|
---|
| 74 |
|
---|
| 75 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" includes="**/*"/>
|
---|
| 76 | </target>
|
---|
| 77 |
|
---|
| 78 | <target name="compress-sourcecode-component">
|
---|
| 79 | <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
|
---|
| 80 | </target>
|
---|
| 81 |
|
---|
[17652] | 82 | <target name="prepare-sourcecode-core-component">
|
---|
| 83 | <delete dir="components/tmp/sourcecode-core"/>
|
---|
| 84 | <mkdir dir="components/tmp/sourcecode-core"/>
|
---|
| 85 |
|
---|
| 86 | <copy todir="components/tmp/sourcecode-core" overwrite="true">
|
---|
| 87 | <fileset dir="distributions/source">
|
---|
| 88 | <include name="macros/**/*"/>
|
---|
| 89 | <include name="images/**/*"/>
|
---|
| 90 | <include name="etc/**/*"/>
|
---|
| 91 | <include name="gli/**/*"/>
|
---|
| 92 | <include name="collect/**/*"/>
|
---|
| 93 | <include name="doc/**/*"/>
|
---|
| 94 | <include name="setup.bash"/>
|
---|
| 95 | </fileset>
|
---|
| 96 | </copy>
|
---|
| 97 | <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
|
---|
| 98 | </target>
|
---|
| 99 |
|
---|
| 100 | <target name="compress-sourcecode-core-component">
|
---|
| 101 | <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
|
---|
| 102 | </target>
|
---|
| 103 |
|
---|
[17423] | 104 | </project>
|
---|