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="prepare-to-create-components" />
|
---|
7 | <antcall target="create-core-component" />
|
---|
8 | <antcall target="create-sourcecode-component" />
|
---|
9 | </target>
|
---|
10 |
|
---|
11 | <target name="prepare-to-create-components">
|
---|
12 | <delete dir="components"/>
|
---|
13 | <mkdir dir="components/tmp"/>
|
---|
14 | </target>
|
---|
15 |
|
---|
16 | <target name="create-core-component">
|
---|
17 | <antcall target="prepare-core-component" />
|
---|
18 | <antcall target="compress-core-component" />
|
---|
19 | </target>
|
---|
20 |
|
---|
21 | <target name="create-sourcecode-component">
|
---|
22 | <antcall target="prepare-sourcecode-component" />
|
---|
23 | <antcall target="compress-sourcecode-component" />
|
---|
24 | </target>
|
---|
25 |
|
---|
26 | <target name="prepare-core-component">
|
---|
27 | <mkdir dir="components/tmp/core"/>
|
---|
28 | <copy todir="components/tmp/core" overwrite="true">
|
---|
29 | <fileset dir="distributions/web">
|
---|
30 | <include name="**/*"/>
|
---|
31 |
|
---|
32 | <!-- sourcecode -->
|
---|
33 | <exclude name="common-src/**/*"/>
|
---|
34 | <exclude name="runtime-src/**/*"/>
|
---|
35 | <exclude name="build-src/**/*"/>
|
---|
36 |
|
---|
37 | </fileset>
|
---|
38 | </copy>
|
---|
39 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
40 | </target>
|
---|
41 |
|
---|
42 | <target name="compress-core-component">
|
---|
43 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
44 | </target>
|
---|
45 |
|
---|
46 | <target name="prepare-sourcecode-component">
|
---|
47 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
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>
|
---|