<?xml version='1.0' encoding="utf-8"?>
<project name="zeroi example" default="run" basedir=".">
	<description>
		buildfile for zeroi's example
	</description>
	<target name="deploy" description="Compiles an existing SWF file with MTASC for debugging">
		<!-- defines ant properties, you'll find more properties in "build.jk.properties" -->
		<property name="targetswf" value="zeroiExample.swf"/>
		<property name="mainclass" value="ZeroiExample.as"/>
		<property name="classframe" value="1"/>
		<property name="version" value="7"/>
			<exec executable="${mtasc}" failonerror="true">
				<!-- runs mtasc adding following arguments -->
				<arg value="-version"/>
				<arg value="${version}"/>
				<arg value="-cp"/>
				<arg value="${content.classpath}"/>
				<arg value="-cp"/>
				<arg value="${zeroi.classpath}"/>
				<arg value="-cp"/>
				<arg value="${core.classpath}"/>
				<arg value="-swf"/>
				<arg value="${deploy.folder}/${targetswf}"/>
				<arg value="-frame"/>
				<arg value="${classframe}"/>
				<arg value="-main"/>
				<arg value="${content.classpath}/${mainclass}"/>
				<!-- adds zeroi's trace functions -->
				<arg value="-trace"/>
				<arg value="org.osflash.zeroi.logging.LoggerClass.log"/>
				<arg value="org/osflash/zeroi/logging/LoggerClass"/>
				<arg value="org/osflash/zeroi/logging/publisher/LuminicPublisher"/>
			</exec>
		</target>
	<target name="run" depends="deploy" description="opens SWF">
		<!-- opens the *.swf with the Flash Player (Standalone) -->
		<!-- Note: The following command is for OS X users only, it won't run on windows -->
		<exec executable="open" dir=".">
			<arg line="-a ${flashplayer.v9} ${deploy.folder}/${targetswf}" />
		</exec>
	</target>
</project>
