-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_setup.xml
More file actions
84 lines (74 loc) · 1.95 KB
/
build_setup.xml
File metadata and controls
84 lines (74 loc) · 1.95 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<project>
<target name="setup">
<path id="ant.contrib.classpath">
<fileset dir="${basedir}/ext/ant_contrib">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="ant.contrib.classpath" />
<path id="ant.flex.classpath">
<fileset dir="${basedir}/ext/ant_flex">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef resource="flexTasks.tasks" classpathref="ant.flex.classpath" />
<if>
<or>
<not>
<available file="config4user.properties" />
</not>
<uptodate targetfile="config.properties.base" srcfile="config4user.properties" />
</or>
<then>
<copy file="config.properties.base" tofile="config4user.properties" />
</then>
</if>
<if>
<or>
<not>
<available file="config4ant.properties" />
</not>
<uptodate targetfile="config4user.properties" srcfile="config4ant.properties" />
</or>
<then>
<exec executable="native2ascii">
<arg line="-encoding UTF-8 config4user.properties config4ant.properties" />
</exec>
</then>
</if>
<property file="config4ant.properties" />
<if>
<equals arg1="${FLEX_HOME}" arg2="" />
<then>
<fail>
You need to edit the config4user.properties:
FLEX_HOME=
then ant again!!
</fail>
</then>
</if>
<if>
<not>
<available file="${config.dir.playerglobal}" type="dir"/>
</not>
<then>
<fail>
${config.dir.playerglobal} do not exist!!
</fail>
</then>
</if>
<if>
<or>
<not>
<available file="${config.flex_config.file}" />
</not>
<uptodate targetfile="${config.flex_config.file}.base" srcfile="${config.flex_config.file}" />
</or>
<then>
<copy file="${config.flex_config.file}.base" tofile="${config.flex_config.file}" />
</then>
</if>
<record action="start" loglevel="${config.log.level}" append="no" name="${config.dir.log}/build.log" />
</target>
</project>