Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created March 18, 2009 15:44
Show Gist options
  • Save ruprict/81201 to your computer and use it in GitHub Desktop.
Save ruprict/81201 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<project name="esiCompLib" basedir="." default="main">
<property name="task.lib.dir" value="../../../Build/Ant/"/>
<taskdef resource="flexTasks.tasks" classpath="../../../Build/Ant/flexTasks.jar" />
<property name="FLEX_HOME" value="C:/Program Files (x86)/Adobe/Flex Builder 3/sdks/3.2.0"/>
<property name="DEPLOY_DIR" value="${basedir}/bin"/>
<property name="COMPONENT_ROOT" value="components"/>
<property name="compc.jar" value="${task.lib.dir}/compc.jar"/>
<property name="thirdparty.dir" value="../../../Third Party"/>
<target name="main" depends="clean">
<fileset id="sources" dir="src/com/esi">
<include name="**/*.as" />
</fileset>
<!--<apply executable="cmd.exe" append="true">
<arg line="echo" />
<fileset dir="src/com/esi">
<include name="**/*.as" />
</fileset>
</apply>-->
<pathconvert property="classes" pathsep=" " refid="sources">
<chainedmapper>
<globmapper from="${basedir}\src\" to="*"/>
<mapper type="package" from="*.as" to="*"/>
</chainedmapper>
</pathconvert>
<echo message="classes is set to = ${classes}"/>
<compc
output="${DEPLOY_DIR}/esiCompLib.swc" include-classes="${classes}">
<source-path path-element="${basedir}/src"/>
<compiler.external-library-path dir="${thirdparty.dir}/Adobe" append="true">
<include name="*" />
</compiler.external-library-path>
<compiler.external-library-path dir="${thirdparty.dir}/ESRI" append="true">
<include name="*" />
</compiler.external-library-path>
<compiler.external-library-path dir="${thirdparty.dir}/Fluint" append="true">
<include name="*" />
</compiler.external-library-path>
<!-- <include-file name="f1-1.jpg" path="assets/images/f1-1.jpg"/>
<include-file name="f1-2.jpg" path="assets/images/f1-2.jpg"/>
<include-file name="f1-3.jpg" path="assets/images/f1-3.jpg"/>
<include-file name="f1-4.jpg" path="assets/images/f1-4.jpg"/>
<include-file name="main.css" path="assets/css/main.css"/> -->
</compc>
</target>
<target name="clean">
<delete>
<fileset dir="${DEPLOY_DIR}" includes="esiCompLib.swc"/>
</delete>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment