Gestouch/build.xml

60 lines
2.5 KiB
XML
Raw Normal View History

2011-04-29 11:27:52 -04:00
<?xml version="1.0" encoding="utf-8"?>
<project name="Gestouch" default="release" basedir=".">
<!-- Thanks to Robotlegs project for the tasks -->
<!-- Load properties -->
<property file="build.properties" />
<property file="version.properties" />
<target name="release" description="" depends="compile.swc, asdoc">
<!-- TODO: tests? -->
</target>
<target name="compile.swc">
<echo>[compile] Compiling release SWC</echo>
<java jar="${flexSDK.dir}/lib/compc.jar" dir="${flexSDK.dir}/frameworks" fork="true" failonerror="true">
<!-- Build our SWC with a versioned name. -->
<arg value="-output=${binrelease.dir}/gestouch-${project.version}.swc"/>
<!-- We want all the org package classes in the SWC being built. -->
<arg value="-include-sources=${src.dir}"/>
<!-- Exclude Flex Framework classes (some mx events comes from binding). -->
<arg value="-external-library-path+=${flexSDK.dir}/frameworks/libs"/>
<!-- Keep the metatags (Apparat?). -->
<arg value="-keep-as3-metadata+=Abstract"/>
<!-- Boolean mosh pit! -->
<arg value="-incremental=false"/>
<arg value="-static-link-runtime-shared-libraries=true"/>
<arg value="-verbose-stacktraces=true"/>
<arg value="-headless-server=true"/>
</java>
<echo>[compile] Release SWC gestouch-${project.version}.swc created successfully</echo>
</target>
<target name="asdoc">
<echo>[asdoc] Generating ASDOC documentation</echo>
<tstamp>
<format property="docgen.time" pattern="MM/dd/yyyy hh:mm aa" unit="hour"/>
</tstamp>
<delete includeemptydirs="true" failonerror="false">
<fileset dir="${asdoc.dir}" defaultexcludes="false">
<include name="**/*" />
</fileset>
</delete>
<java jar="${FLEX_HOME}/lib/asdoc.jar" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
<arg line="-source-path ${src.dir}"/>
<arg line="-doc-sources ${src.dir}"/>
<arg line="-exclude-classes com.inreflected.utils.pooling.ObjectPool"/>
<arg line="-output ${asdoc.dir}"/>
<arg value="-keep-xml=true"/>
<arg line="-window-title 'Gestouch ${project.version}'"/>
<arg line="-main-title 'Gestouch ${project.version}'"/>
<arg line="-footer 'Gestouch - http://github.com/fljot/Gestouch/ - Documentation generated at: ${docgen.time}'"/>
<arg line="-package org.gestouch.gestures 'Gestures'"/>
<arg line="-package org.gestouch.events 'Gesture events, generated by gesture classes and dispatched by display objects.'"/>
</java>
<echo>[asdoc] ASDOC documentation generated successfully</echo>
</target>
</project>