1 Reply Latest reply on Oct 9, 2007 7:30 AM by levancho

    asdoc compilation many errors

    levancho Level 3
      I have strange issue and can't seem to fine an answer, problem is I have ant task to compile application using mxmlc and have exec task to generate asdoc, problem is mxmlx works just fine (target called "compile"), but exec (target called "docs") reports a lot of errors, I do have made sure I have source path set correctly, please if anybody can help me get this resolveD I would really appreciate it ,
      here is my build.xml:

      ------------
      <property file="./build.properties" />
      <property name="APP_ROOT" value="${basedir}"/>
      <property name="FLEX_HOME" value="D:\opt\flex2SDK\2.0.1"/>
      <property name="DEPLOY_DIR" value="D:\opt\tomcat\webapps\testApp"/>
      <property name="asdoc.exe" location="${FLEX_HOME}\bin\asdoc.exe"/>


      <taskdef resource="flexTasks.tasks" classpath="${ANT_HOME}/lib/flexTasks.jar" />

      <target name="compile">
      <!-- Compiile Main -->
      <mxmlc file="./Main.mxml"
      output="${DEPLOY_DIR}/Main.swf"
      show-binding-warnings="false"
      show-actionscript-warnings="false"
      link-report="./links.xml"
      use-network="true">
      <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
      <source-path path-element="${FLEX_HOME}/frameworks"/>
      <compiler.library-path dir="." append="true">
      <include name="lib" />
      </compiler.library-path>
      <compiler.source-path path-element=""/>
      <compiler.source-path path-element="src"/>
      </mxmlc>


      <!-- compile module Admin -->
      <mxmlc file="./Admin.mxml"
      output="${DEPLOY_DIR}/Admin.swf"
      show-binding-warnings="false"
      show-actionscript-warnings="false"
      load-externs="./links.xml"
      use-network="true"
      >
      <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
      <source-path path-element="${FLEX_HOME}/frameworks"/>
      <compiler.source-path path-element=""/>
      <compiler.source-path path-element="src"/>
      </mxmlc>

      <antcall target="docs" />
      </target>


      <target name="docs">
      <exec executable="${asdoc.exe}" failonerror="true" >
      <arg line="-source-path '.'" />
      <arg line="-source-path 'src'" />

      <arg line="-library-path '${FLEX_HOME}/frameworks/libs'"/>
      <arg line="-library-path '${FLEX_HOME}/frameworks/locale/en_US'"/>
      <arg line="-library-path 'lib'"/>
      <arg line='-doc-sources ${domainextensions}'/>
      <arg line='-main-title "${title}"' />
      <arg line='-window-title "${title}"' />
      <arg line='-output ${outputfolder}' />
      </exec>
      </target>
        • 1. asdoc compilation many errors
          levancho Level 3
          I forgot to mention, <target name="docs"> reports compilation errors, which is strange why would documentation generator try to compile application? should not it just parse files and generate html, I believe thats how javadoc is working.
          but application does compile with mxmlc compilew, it seems that it is more picky than mxmlc, why would mxmlc compile without errors for same codebase and javadoc.exe would break?