-
Notifications
You must be signed in to change notification settings - Fork 4
/
pkg.xml
63 lines (59 loc) · 1.91 KB
/
pkg.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<project name="pkg" basedir="./" xmlns:antcontrib="antlib:net.sf.antcontrib">
<property name="pkg.dir" value="${cfdistro.basedir}/pkg" />
<property name="pkg.props.temp" value="${temp.dir}/currentprops.properties" />
<target name="pkg.install" description="installs package ${pkg}">
<input
message="Please enter pkg name (ex: mxunit):"
addproperty="pkg"
/>
<echo message="installing: ${pkg}" />
<mkdir dir="${temp.dir}" />
<echoproperties destfile="${pkg.props.temp}"/>
<java
classname="org.apache.tools.ant.launch.Launcher"
fork="true"
failonerror="true"
dir="${basedir}"
timeout="4000000"
taskname="startAnt"
>
<classpath>
<pathelement location="${ant.home}/lib/ant-launcher.jar"/>
</classpath>
<arg value="-Dbasedir=${basedir}"/>
<arg value="-f"/>
<arg value="${pkg.dir}/${pkg}/build.xml"/>
<arg value="-propertyfile"/>
<arg value="${basedir}/build.properties"/>
<arg value="install"/>
</java>
<delete file="${pkg.props.temp}"/>
</target>
<target name="pkg.configure" description="installs package ${pkg}">
<input
message="Please enter pkg name (ex: mxunit):"
addproperty="pkg"
/>
<echo message="updating: ${pkg}" />
<echoproperties destfile="${pkg.props.temp}"/>
<java
classname="org.apache.tools.ant.launch.Launcher"
fork="true"
failonerror="true"
dir="${basedir}"
timeout="4000000"
taskname="startAnt"
>
<classpath>
<pathelement location="${ant.home}/lib/ant-launcher.jar"/>
</classpath>
<arg value="-Dbasedir=${basedir}"/>
<arg value="-f"/>
<arg value="${pkg.dir}/${pkg}/build.xml"/>
<arg value="-propertyfile"/>
<arg value="${basedir}/build.properties"/>
<arg value="configure"/>
</java>
<delete file="${pkg.props.temp}"/>
</target>
</project>