<?xml version="1.0" encoding="utf-8"?>

<project 
    name="Cyber Awareness Challenge ActionScript Documentation (ASDoc)" 
    default="main"
    basedir=".">

    <property 
        name="FLEX_HOME" 
        value="C:/Program Files/Adobe/Adobe Flash Builder 4.5/sdks/4.5.0"/>
    
    <taskdef 
        resource="flexTasks.tasks" 
        classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />

    <target
        name="clean">

        <delete
            dir="${basedir}/asdoc"/>
        
    </target>

    <target
        name="doc">

        <mkdir 
            dir="${basedir}/asdoc"/>

        <asdoc
            output="${basedir}/asdoc"
            lenient="true"
            failonerror="true"
            warnings="false"
            strict="false"
            locale="en_US"
            fork="true">
			
			<!--<define
				name="CONFIG::ACTIVITY_CLASS"
				value="com.carney.cac.app.System"/>
        			
			<define
        		name="CONFIG::HAS_EXTERNAL_ACCESS"
        		value="true"/>-->
        			
        	<source-path
                path-element="C:\_dev\carney\vss\DISA\DISA_CYBERCHALLENGE_FY10\dev\common\lib\src"/>
		
			<source-path
			    path-element="C:\_dev\carney\vss\SDK\common\assets"/>

            <doc-sources
                path-element="${basedir}\assets"/>

			<exclude-sources
				path-element="${basedir}\assets\com\carney\cac\app\System.as"/>
        	
        	<exclude-sources
        		path-element="${basedir}\assets\InBoxing.as"/>

            <package-description-file>${basedir}\doc\cyberchallenge_package_descriptions.xml</package-description-file>

        </asdoc>
        
    </target>

    <target
        name="main"
        depends="clean,doc"/>
    
</project>