Hello
I'm trying to run ASDoc using an ANT script that was published (generously)
by Chris Luebcke for public use on his web site. (
http://chrisluebcke.com/tag/asdoc/).
The problem I'm having is that the ASDoc.exe is not finding the core flash
classes, so there is likely a problem with the -library-path argument. I'm
getting errors like
col: 60 Error: Type was not found or was not a compile-time constant:
DisplayObjectContainer.
Note: The Ant script Chris published on his site does not include the
"property" values at the top, so I was guessing as to what these are.
Thanks,
August
<project default="main">
<!-- local docs output directory -->
<property name="asdoc.dir" value="docs/api"/>
<!-- base path to the SDK -->
<property name="flex-sdk.dir" value="C:\Program Files\Adobe\Flex Builder
2 Plug-in\Flex SDK 2"/>
<!-- current directory is the base -->
<property name="base.dir" value="."/>
<!-- assume local source directory?? -->
<property name="flex.dir" value="src"/>
<!-- local lib directory - is this right? -->
<property name="flex-lib.dir" value="lib"/>
<target name="main" depends="asdoc" description="Main target">
<echo>
Building Source Documentation
</echo>
</target>
<!-- =========================================================== -->
<!-- asdoc: Generate asdoc documentation (requires installation -->
<!-- of asdoc in the flex sdk folder -->
<!-- =========================================================== -->
<target name="asdoc">
<delete dir="${asdoc.dir}" />
<exec executable="${flex-sdk.dir}/bin/asdoc.exe"
dir="${base.dir}">
<!-- <arg line="-doc-classes Main" /> -->
<!-- old syntax ?? changed to "doc-sources"
<arg line="-source-path ${flex.dir}" /> -->
<arg line="-doc-sources ${flex.dir}" />
<!-- <arg line="-namespace http://www.mycompany.com/2007/view ${
flex-config.dir}/component-manifest.xml" /> -->
<arg line="-output ${asdoc.dir}"/>
<arg line="-library-path '${flex-lib.dir}'"/>
<arg line="-library-path '${flex-sdk.dir}/frameworks/libs'"/>
<arg line="-library-path '${flex-sdk.dir
}/frameworks/locale/en_US'"/>
<arg line="-main-title 'MyApp ASDoc'" />
<arg line="-window-title 'MyApp ASDoc'" />
<arg line="-footer 'CONFIDENTIAL. Copyright 2007 My Company'" />
</exec>
</target>
</project>
--
---------------------------------------------------------
--------------------------------------------------------
August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]
---------------------------------------------------------
--------------------------------------------------------