1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk2-create-components" default="create-components">
|
---|
3 |
|
---|
4 | <!-- create components from the distribution folder -->
|
---|
5 | <target name="create-components">
|
---|
6 | <antcall target="create-core-component" />
|
---|
7 | <antcall target="create-sourcecode-component" />
|
---|
8 | </target>
|
---|
9 |
|
---|
10 | <target name="create-core-component">
|
---|
11 | <antcall target="prepare-core-component" />
|
---|
12 | <antcall target="compress-core-component" />
|
---|
13 | </target>
|
---|
14 |
|
---|
15 | <target name="create-sourcecode-component">
|
---|
16 | <antcall target="prepare-sourcecode-component" />
|
---|
17 | <antcall target="compress-sourcecode-component" />
|
---|
18 | </target>
|
---|
19 |
|
---|
20 | <target name="prepare-core-component">
|
---|
21 |
|
---|
22 | <delete dir="components/tmp/core"/>
|
---|
23 | <mkdir dir="components/tmp/core"/>
|
---|
24 |
|
---|
25 | <copy todir="components/tmp/core" overwrite="true">
|
---|
26 | <fileset dir="distributions/web">
|
---|
27 | <include name="**/*"/>
|
---|
28 |
|
---|
29 | <!-- sourcecode -->
|
---|
30 | <exclude name="common-src/**/*"/>
|
---|
31 | <exclude name="runtime-src/**/*"/>
|
---|
32 | <exclude name="build-src/**/*"/>
|
---|
33 |
|
---|
34 | </fileset>
|
---|
35 | </copy>
|
---|
36 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
37 | </target>
|
---|
38 |
|
---|
39 | <target name="compress-core-component">
|
---|
40 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
41 | </target>
|
---|
42 |
|
---|
43 | <target name="prepare-sourcecode-component">
|
---|
44 |
|
---|
45 | <delete dir="components/tmp/sourcecode"/>
|
---|
46 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
47 |
|
---|
48 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
49 | <fileset dir="distributions/web">
|
---|
50 | <include name="common-src/**/*"/>
|
---|
51 | <include name="runtime-src/**/*"/>
|
---|
52 | <include name="build-src/**/*"/>
|
---|
53 | </fileset>
|
---|
54 | </copy>
|
---|
55 |
|
---|
56 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" includes="**/*"/>
|
---|
57 | </target>
|
---|
58 |
|
---|
59 | <target name="compress-sourcecode-component">
|
---|
60 | <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
|
---|
61 | </target>
|
---|
62 |
|
---|
63 | </project>
|
---|