forked from ohinckel/build-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.xml
30 lines (27 loc) · 1.1 KB
/
installer.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="xp-framework-build-installer" xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="ant.base" value="${user.home}/.ant/"/>
<property name="install.dir" value="${ant.base}/xp-build/"/>
<property name="lib.dir" value="${ant.base}/lib/"/>
<property name="version" value="1.6.12"/>
<echo>===> Installing XP Framework build system into ${install.dir}</echo>
<mkdir dir="${install.dir}"/>
<delete>
<fileset dir="${install.dir}" includes="**/*"/>
</delete>
<mkdir dir="${lib.dir}"/>
<echo>===> Downloading build scripts</echo>
<get src="http://xp-framework.net/repository/release/net.xp_framework/build/${version}/build-${version}.zip" dest="${ant.base}/build-${version}.zip"/>
<unzip dest="${install.dir}" src="${ant.base}/build-${version}.zip">
<patternset>
<include name="*/src/**"/>
</patternset>
<cutdirsmapper dirs="2"/>
</unzip>
<unzip dest="${lib.dir}" src="${ant.base}/build-${version}.zip">
<patternset>
<include name="*/lib/**"/>
</patternset>
<cutdirsmapper dirs="2"/>
</unzip>
</project>