Sha256: 6a980efc2c59073493e52dcaaf599fc8e32f378ed0702ed9a6cfe6ac5c7b9313

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

<project name="AsUnit" default="swc">

	<!-- Set up a prefix for all environment variables. -->
	<property environment="env."/>
	<fail unless="env.FLEX_HOME" message="FLEX_HOME needs to be defined as an environment variable or in the Ant build." />
	<!-- Copy Flex SDK location from environment variable. This can be set manually as well. -->
	<property name="FLEX_HOME" value="${env.FLEX_HOME}" />

	<!-- project paths -->
	<property name="root.dir" location="."/>
	<property name="src.dir" location="${root.dir}/src"/>
	<property name="vendor.dir" location="${root.dir}/vendor"/>
	<property name="test.dir" location="${root.dir}/test"/>
	<property name="libs.dir" location="${root.dir}/lib"/>
	<property name="output.dir" location="${root.dir}/bin"/>
	<property name="output.swc" location="${output.dir}/asunit.swc"/>
			
	<target name="swc" depends="" description="Compile AS3 code into a SWC">
		<echo>Using Flex SDK at: ${FLEX_HOME}</echo>
			
		<java jar="${FLEX_HOME}/lib/compc.jar" dir="." fork="true" failonerror="true">
			<arg value="+flexlib=${FLEX_HOME}/frameworks" />
			<arg value="-incremental=true" />
				
			<arg value="-source-path+=${src.dir}" />
			<arg value="-source-path+=${vendor.dir}/as3reflection" />
			
			<!-- Include all classes in this path. -->
			<arg value="-include-sources=${src.dir}" />
			
			<!-- Link in classes from swc library (only those used). -->
			<!--<arg value="-library-path+=${libs.dir}" />-->
			
			<!-- Exclude Flex and AIR framework classes from swc. -->
			<arg value="-external-library-path+=${FLEX_HOME}/frameworks/libs" />
			<!--
			<arg value="-external-library-path+=${libs.dir}/airframework.swc" />
			<arg value="-external-library-path+=${libs.dir}/airglobal.swc" />
			-->
			
			<arg value="-output=${output.swc}" />
		</java>
			
	</target>
		
</project>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asunit4-4.2.2.pre build.xml
asunit4-4.2.1.pre build.xml