-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
47 lines (38 loc) · 1.56 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
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<project name="flex-vectors-example" default="deploy">
<!-- EDIT THIS PART -->
<property name="FLEX_HOME" value="/path/to/flex_sdk_4.10.0"/>
<property name="deploy.dir" value="/path/to/tomcat/webapps"/>
<!-- /EDIT THIS PART -->
<property name="webapp.name" value="flex-vectors"/>
<target name="build.flex">
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<mkdir dir="bin-flex"/>
<mxmlc
file="flex/FlexVectors.mxml"
output="bin-flex/FlexVectors.swf"
context-root="/${webapp.name}"
services="services-config.xml"
keep-generated-actionscript="false"
debug="true"
incremental="true"
use-network="false">
<source-path path-element="${FLEX_HOME}/frameworks"/>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
</mxmlc>
</target>
<target name="deploy" depends="build.flex">
<war destfile="${deploy.dir}/${webapp.name}.war" webxml="web.xml">
<lib dir=".">
<include name="granite.jar"/>
</lib>
<classes dir="bin"/>
<fileset dir="bin-flex">
<include name="FlexVectors.swf"/>
</fileset>
<zipfileset dir="." prefix="WEB-INF/flex">
<include name="services-config.xml"/>
</zipfileset>
</war>
</target>
</project>