1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="rke-create-components">
|
---|
3 |
|
---|
4 | <target name="create-component">
|
---|
5 | <mkdir dir="components"/>
|
---|
6 |
|
---|
7 | <!-- the PatternSet To File task takes one or more patternsets and outputs to a file all of the files it includes -->
|
---|
8 | <!--<pstf dir="compiled" outfile="compiled/uninstall/${component}.uninstall" toplevelonly="true">
|
---|
9 | <patternset refid="${projectname}${version.major}.${component}${ext-x64}.component"/>
|
---|
10 | </pstf>-->
|
---|
11 |
|
---|
12 | <zip destfile="components/${component}.comp" compress="false">
|
---|
13 | <zipfileset dir="compiled">
|
---|
14 | <patternset refid="${projectname}${version.major}.${component}${ext-x64}.component"/>
|
---|
15 | </zipfileset>
|
---|
16 | </zip>
|
---|
17 |
|
---|
18 | <!-- windows -->
|
---|
19 | <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
|
---|
20 | <exec executable="${rk.home}/shared/windows/7za/7za.exe" dir="components"><arg line="a -t7z -mx=9 ${component}.lzma ${component}.comp"/></exec>
|
---|
21 |
|
---|
22 | <!-- linux, mac -->
|
---|
23 | <else><if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
|
---|
24 | <sevenzip task="encode" input="components/${component}.comp" output="components/${component}.lzma" dictionnary="26"/>
|
---|
25 |
|
---|
26 | <!-- else warn -->
|
---|
27 | <else>
|
---|
28 | <fail>this target does not support this os (was a new release-kit os added?)</fail>
|
---|
29 |
|
---|
30 | </else></if></else></if>
|
---|
31 | </target>
|
---|
32 |
|
---|
33 | <target name="create-components">
|
---|
34 |
|
---|
35 | <!--
|
---|
36 | <antcall target="create-component">
|
---|
37 | <param name="component" value="imagemagick"/>
|
---|
38 | <param name="ext-x64" value="${extension-x64}"/>
|
---|
39 | </antcall>
|
---|
40 |
|
---|
41 |
|
---|
42 | <antcall target="create-component">
|
---|
43 | <param name="component" value="apachehttpd"/>
|
---|
44 | <param name="ext-x64" value=""/>
|
---|
45 | </antcall>
|
---|
46 |
|
---|
47 |
|
---|
48 | <if><bool><or><equals arg1="${rk.os}" arg2="windows"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
|
---|
49 | <antcall target="create-component">
|
---|
50 | <param name="component" value="ghostscript"/>
|
---|
51 | <param name="ext-x64" value=""/>
|
---|
52 | </antcall>
|
---|
53 | </if>
|
---|
54 | -->
|
---|
55 | <!-- core -->
|
---|
56 | <antcall target="create-component">
|
---|
57 | <param name="component" value="core"/>
|
---|
58 | <param name="ext-x64" value=""/>
|
---|
59 | </antcall>
|
---|
60 |
|
---|
61 | </target>
|
---|
62 |
|
---|
63 | </project>
|
---|