-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
24 lines (24 loc) · 1.13 KB
/
build.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
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="gawati-portal">
<xmlproperty file="expath-pkg.xml"/>
<property name="project.version" value="${package(version)}"/>
<property name="project.spec" value="${package(spec)}" />
<property name="project.app" value="gawati-portal"/>
<property name="build.dir" value="build"/>
<property name="pkg.dir" value="${build.dir}/${project.app}-${project.version}" />
<condition property="pkg.type" value="${pkgtype}" else="dev">
<isset property="pkgtype" />
</condition>
<target name="xar">
<mkdir dir="${build.dir}"/>
<delete dir="${pkg.dir}" />
<copy todir="${pkg.dir}" >
<fileset dir="." excludes="${build.dir}/*,${build.dir},**/__contents__.xml" />
</copy>
<replace file="${pkg.dir}/_configs/profile.xml"
token="status="dev""
value="status="${pkg.type}"" />
<zip basedir="${pkg.dir}" destfile="${build.dir}/${project.app}-${project.version}-${pkg.type}.xar" excludes="${build.dir}/*"/>
<delete dir="${pkg.dir}" />
</target>
</project>