-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
26 lines (22 loc) · 1.05 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="KafeComponent" basedir="." default="compile">
<!-- set up a prefix for all environment variables -->
<property environment="env."/>
<!-- System environment must contain FLEX_HOME variable that points to Flex SDK -->
<property name="FLEX_HOME" location="${env.FLEX_HOME}"/>
<!-- identify properties file -->
<property file="build.properties"/>
<!-- Compile Release SWC -->
<target name="compile" description="compile swc">
<echo>[compile] Compiling release SWC</echo>
<echo>[compile] Using Flex SDK at: ${FLEX_HOME}</echo>
<java jar="${compc}" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
<arg value="-output=${bin.loc}/${project.name.versioned}.swc"/>
<arg value="-source-path=${main.src.loc}/"/>
<arg value="-include-sources=${main.src.loc}/"/>
<arg value="-external-library-path+=${lib.loc}"/>
<arg value="-debug=true"/>
</java>
<echo>[compile] Release SWC ${project.name.versioned}.swc created successfully</echo>
</target>
</project>