-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
43 lines (37 loc) · 1.36 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!--
External parameters:
jdk path to JDK
build.number build number
-->
<project name="Deskzilla" default="prepareDistribution" basedir=".">
<import file="properties.xml"/>
<target name="clean">
<delete dir="${dir.build}" failonerror="false"/>
</target>
<target name="init">
<mkdir dir="${dir.build}"/>
<mkdir dir="${dir.class.prodcode}"/>
<mkdir dir="${dir.deliver.tmp}"/>
<mkdir dir="${dir.deliver.out}"/>
</target>
<target name="generateBuildXml">
<property name="gen.file.metasource" location="meta.xml"/>
<property name="gen.file.transform" location="transform.xsl"/>
<delete file="${file.generated}" failonerror="true"/>
<xslt style="${gen.file.transform}" in="${gen.file.metasource}" out="${file.generated}" processor="trax" classpath="${dir.project}/ant/jars/saxon9he.jar"/>
<available file="${file.generated}" property="available.generated"/>
<fail message="XSLT failed" unless="available.generated"/>
</target>
<target name="prepareDistribution" depends="generateBuildXml, clean, init">
<ant antfile="runGenerated.xml">
<target name="ALL.compile"/>
<target name="ALL.test"/>
<target name="distAll"/>
</ant>
<chmod perm="+x">
<fileset dir="${dir.dist}/${product.name}/bin">
<include name="**/*.sh"/>
</fileset>
</chmod>
</target>
</project>