-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
91 lines (75 loc) · 2.62 KB
/
build.xml
File metadata and controls
91 lines (75 loc) · 2.62 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
85
86
87
88
89
90
<?xml version="1.0"?>
<project name="VisuMapEditor" default="toolComplete" basedir="./">
<property name="APP_ROOT" value="src/core/com/visuengine/tools/mapeditor"/>
<property name="debugMode" value="false"/>
<property environment="env"/>
<condition property="FLEX_HOME" value="${env.FLEX_HOME}">
<and>
<not>
<isset property="FLEX_HOME"/>
</not>
<isset property="env.FLEX_HOME"/>
</and>
</condition>
<condition property="FLEX_HOME" value="${FLEX_HOME.default}">
<not>
<isset property="FLEX_HOME"/>
</not>
</condition>
<available file="${FLEX_HOME}/ant/lib/flexTasks.jar" property="flexTasks.jar" value="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<condition property="flexTasks.jar" value="">
<not>
<isset property="flexTasks.jar"/>
</not>
</condition>
<property name="flexTasks.jar" value="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<taskdef resource="flexTasks.tasks" classpath="${flexTasks.jar}" />
<target name="toolComplete">
<antcall target="compile"/>
<antcall target="createTempCert"/>
<antcall target="packageTool"/>
<antcall target="clean"/>
</target>
<target name="compile">
<mxmlc file="${APP_ROOT}/Main.as" output="bin/visumapEditor.swf" debug="${debugMode}" optimize="true" keep-generated-actionscript="false">
<default-size width="1024" height="768" />
<load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
<source-path path-element="${FLEX_HOME}/frameworks"/>
<source-path path-element="./src/core"/>
<source-path path-element="./src/framework"/>
<source-path path-element="./src/thirdparty"/>
</mxmlc>
</target>
<target name="createTempCert">
<java dir="${basedir}" jar="${FLEX_HOME}\lib\adt.jar" fork="true" failonerror="true">
<arg value="-certificate"/>
<arg value="-cn"/>
<arg value="SelfSigned"/>
<arg value="1024-RSA"/>
<arg value="SelfSigned.pfx"/>
<arg value="supersecure"/>
</java>
</target>
<target name="packageTool">
<java dir="${basedir}" jar="${FLEX_HOME}\lib\adt.jar" fork="true" failonerror="true">
<arg value="-package"/>
<arg value="-storetype"/>
<arg value="pkcs12"/>
<arg value="-keystore"/>
<arg value="SelfSigned.pfx"/>
<arg value="-storepass"/>
<arg value="supersecure"/>
<arg value="air/visumapEditor.air"/>
<arg value="application.xml"/>
<arg value="bin/visumapEditor.swf"/>
</java>
</target>
<target name="clean">
<delete file="SelfSigned.pfx"/>
</target>
<target name="test" depends="compile">
<exec dir="${basedir}" executable="${FLEX_HOME}\bin\adl" failonerror="true">
<arg value="application.xml"/>
</exec>
</target>
</project>