<?xml version="1.0" encoding="UTF-8"?>
<project name="Documentation" default="asdoc">

	<property environment="env"/>

	<!--
			Markus Raab - derRaab.com / superclass.de
			
			This ANT build.xml works on a Mac with a FLEX SDK 2.0.1 in the following location:
			/Applications/Adobe_AsDoc/FlexSDK_201
			
			For more informations see: blog.derraab.com
	
			ATTENTION: Use relative paths (according to this build.xml)
	-->

	
	<!--
	ActionScript directory location in source-path and doc-sources (both are needed?)
	-->
	<property name="source-path" value="../src/as/"/>
	<property name="doc-sources" value="../src/as/"/>
	
	<!--
	List with all your used library SWC files (using a directory causes asdoc not to write any documentation files?)
	-->
	<property name="library-path" value="../src/as/mdm.swc ../src/as/layout.swc"/>
	
	<!--
	Documentation output directory
	-->
	<property name="output" value="./classes"/>

	<!--
	SDK Location (without whitespace!)
	-->
	<property name="flex-sdk" value='/Applications/Adobe_AsDoc/FlexSDK_201'/>
	
	<!--
	Location of the asdoc templates
	-->
	<property name="templates-path" value='${flex-sdk}/asdoc/templates'/>
	
	
	<!--
	run
	-->
	<target name="asdoc">
	
		<exec executable='${flex-sdk}/bin/asdoc'>

			<arg value='-source-path ${source-path}'/>
			<arg value='-doc-sources ${doc-sources}'/>
			<arg value='-library-path ${library-path}'/>
			<arg value='-output ${output}'/>
			<arg value='-templates-path ${templates-path}'/>
			
		</exec>
	
	</target>
	
</project>