Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-27232

Error when using Ant asdoc task with 4.5 SDK - Error: unable to load SWC metadata.properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • Ant Tasks
    • None
    • Affected OS(s): Windows
      Language Found: English

    Description

      In any 4.5 project using a simple Ant build file that includes ASDoc generation produces the following error:

      [asdoc] Error: unable to load SWC metadata.properties: C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\frameworks\locale\en_US\metadata.properties is not a SWC file.

      Using asdoc.exe works as expected. This is only the Ant task thats affected. Here's the sample Ant task being used:

      <target name="asdoc">
      <asdoc output="${OUTPUT_DIR}/asdoc" lenient="true" failonerror="false">
      <doc-sources path-element="${SOURCE_DIR}"/>
      <load-config filename="${FLEX_HOME}/frameworks/airmobile-config.xml"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/authoringsupport.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/charts.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/flash-integration.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/framework.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/osmf.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/rpc.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/spark.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/textLayout.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/mobile/mobilecomponents.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/air/servicemonitor.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/locale/${LOCALE}" append="true"/>
      <library-path file="${PROJECT_DIR}/libs" append="true"/>

      <external-library-path file="${FLEX_HOME}/frameworks/libs/air/airglobal.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/authoringsupport.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/charts.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/flash-integration.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/framework.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/osmf.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/rpc.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/spark.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/textLayout.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/mobile/mobilecomponents.swc" append="true"/>
      <library-path file="${FLEX_HOME}/frameworks/libs/air/servicemonitor.swc" append="true"/>

      <library-path dir="${FLEX_HOME}/frameworks/locale/${LOCALE}" includes="*" append="true"/>
      <library-path dir="${PROJECT_DIR}/libs" includes="*" append="true"/>
      </asdoc>
      </target>

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: