26 Replies Latest reply on Jan 21, 2011 1:27 PM by Gaurav J

    still getting mx:HierarchicalData not found during ant build

    flairjax Level 1

      So I have purchased Flash Premium and installed it.  I can build my project in FlashBuilder with no issues using the 4.1.0.... sdk But when I point my ant build to the 4.10 sdk I get can't find mx:HierarchicalData not recognized as a component.

       

      Anyone have any suggestions?

       

       

      Each day I get more and more tired of all the half working stuff Flex has to offer or Not offer. Just issue one license of the product and move on.  Each day I can't wait to get home and code Obj C creating my iPhone apps. Download install pay $99 and I am done.

        • 1. Re: still getting mx:HierarchicalData not found during ant build
          Flex harUI Adobe Employee

          Not sure this is a licensing issue.  Make sure there is a

          datavisualization.swc in the libs folder and that your ant build is set up

          to find it in the library-path.

          • 2. Re: still getting mx:HierarchicalData not found during ant build
            flairjax Level 1

            The swc is there. We use the AdvancedDatagrid throughout the app and just the mx:HierarchicalDatacan't be found.

             

            Date: Tue, 18 Jan 2011 17:18:00 -0700

            From: forums@adobe.com

            To: jason_newport@hotmail.com

            Subject: Flex still getting mx:HierarchicalData not found during ant build

             

            Not sure this is a licensing issue.  Make sure there is a

            datavisualization.swc in the libs folder and that your ant build is set up

            to find it in the library-path.

            >

            • 3. Re: still getting mx:HierarchicalData not found during ant build
              Gaurav J Adobe Employee

              @flairjax,

               

              Can you please post the following:

               

              1. The ant task call that you are using to compile your project.

              2. The exact error message that you are getting.

              3. Can you add -dump-config=confg.xml to the <mxmlc> task and post the config.xml that is generated?

               

              Thanks,

              Gaurav Jain

              Flex SDK Team

              http://www.gauravj.com/blog

              • 4. Re: still getting mx:HierarchicalData not found during ant build
                flairjax Level 1

                Here you go:

                 

                 

                ERROR:

                 

                compile:
                     [echo] Compiling MY Library
                    [compc] Loading configuration file C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex-config.xml
                    [compc] C:\dev_projects\features\flex4version\web\NagbLibrary\src\com\hp\vc\nagblib\view\nagbsumm ary\NagbSummary.mxml(53): Error: Could not resolve
                <mx:HierarchicalData> to a component implementation.
                    [compc]
                    [compc]                  <mx:HierarchicalData id="adgNagHD"/>
                    [compc]

                 

                ========================================================================================== ===================

                 

                 

                DUMP-CONFIG=config.xml:

                 

                <flex-config>
                   <!-- benchmark: output performance benchmark-->
                   <!-- benchmark usage:
                   <benchmark>boolean</benchmark>
                   -->
                   <compiler>
                      <!-- compiler.accessible: generate an accessible SWF-->
                      <accessible>false</accessible>
                      <!-- compiler.actionscript-file-encoding: specifies actionscript file encoding. If there is no BOM in the AS3 source files, the compiler will use this file encoding.-->
                      <!-- compiler.actionscript-file-encoding usage:
                      <actionscript-file-encoding>string</actionscript-file-encoding>
                      -->
                      <!-- compiler.allow-source-path-overlap: checks if a source-path entry is a subdirectory of another source-path entry. It helps make the package names of MXML components unambiguous.-->
                      <allow-source-path-overlap>false</allow-source-path-overlap>
                      <!-- compiler.as3: use the ActionScript 3 class based object model for greater performance and better error reporting. In the class based object model most built-in functions are implemented as fixed methods of classes.-->
                      <as3>true</as3>
                      <!-- compiler.context-root: path to replace {context.root} tokens for service channel endpoints-->
                      <!-- compiler.context-root usage:
                      <context-root>context-path</context-root>
                      -->
                      <!-- compiler.debug: generates a movie that is suitable for debugging-->
                      <debug>true</debug>
                      <!-- compiler.defaults-css-files usage:
                      <defaults-css-files>
                         <filename>string</filename>
                         <filename>string</filename>
                      </defaults-css-files>
                      -->
                      <!-- compiler.defaults-css-url: defines the location of the default style sheet. Setting this option overrides the implicit use of the defaults.css style sheet in the framework.swc file.-->
                      <!-- compiler.defaults-css-url usage:
                      <defaults-css-url>string</defaults-css-url>
                      -->
                      <!-- compiler.define: define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) -->
                      <define>
                         <name>Config::Debug</name>
                         <value>true</value>
                      </define>
                      <define>
                         <name>Config::Release</name>
                         <value>false</value>
                      </define>
                      <!-- compiler.enable-runtime-design-layers usage:
                      <enable-runtime-design-layers>boolean</enable-runtime-design-layers>
                      -->
                      <!-- compiler.es: use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype properties. In the prototype based object model built-in functions are implemented as dynamic properties of prototype objects.-->
                      <es>false</es>
                      <extensions>
                         <!-- compiler.extensions.extension usage:
                         <extension>
                            <extension>string</extension>
                            <parameters>string</parameters>
                         </extension>
                         -->
                      </extensions>
                      <!-- compiler.external-library-path: list of SWC files or directories to compile against but to omit from linking-->
                      <external-library-path>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\player\10.0\playerglobal.swc</path-element>
                      </external-library-path>
                      <fonts>
                         <!-- compiler.fonts.advanced-anti-aliasing: enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small fonts.-->
                         <advanced-anti-aliasing>true</advanced-anti-aliasing>
                         <!-- compiler.fonts.flash-type: enables FlashType for embedded fonts, which provides greater clarity for small fonts.-->
                         <!-- compiler.fonts.flash-type usage:
                         <flash-type>boolean</flash-type>
                         -->
                         <languages>
                            <!-- compiler.fonts.languages.language-range: a range to restrict the number of font glyphs embedded into the SWF-->
                            <!-- compiler.fonts.languages.language-range usage:
                            <language-range>
                               <lang>string</lang>
                               <range>string</range>
                               <range>string</range>
                            </language-range>
                            -->
                         </languages>
                         <!-- compiler.fonts.local-font-paths usage:
                         <local-font-paths>
                            <path-element>string</path-element>
                            <path-element>string</path-element>
                         </local-font-paths>
                         -->
                         <!-- compiler.fonts.local-fonts-snapshot: File containing system font data produced by flex2.tools.FontSnapshot.-->
                         <local-fonts-snapshot>${flexlib}/localFonts.ser</local-fonts-snapshot>
                         <!-- compiler.fonts.managers: Compiler font manager classes, in policy resolution order-->
                         <managers>
                            <manager-class>flash.fonts.JREFontManager</manager-class>
                            <manager-class>flash.fonts.BatikFontManager</manager-class>
                            <manager-class>flash.fonts.AFEFontManager</manager-class>
                            <manager-class>flash.fonts.CFFFontManager</manager-class>
                         </managers>
                         <!-- compiler.fonts.max-cached-fonts: sets the maximum number of fonts to keep in the server cache.  The default value is 20.-->
                         <max-cached-fonts>20</max-cached-fonts>
                         <!-- compiler.fonts.max-glyphs-per-face: sets the maximum number of character glyph-outlines to keep in the server cache for each font face. The default value is 1000.-->
                         <max-glyphs-per-face>1000</max-glyphs-per-face>
                      </fonts>
                      <!-- compiler.headless-server: a flag to set when Flex is running on a server without a display-->
                      <!-- compiler.headless-server usage:
                      <headless-server>boolean</headless-server>
                      -->
                      <!-- compiler.include-libraries: a list of libraries (SWCs) to completely include in the SWF-->
                      <!-- compiler.include-libraries usage:
                      <include-libraries>
                         <library>string</library>
                         <library>string</library>
                      </include-libraries>
                      -->
                      <!-- compiler.incremental: enables incremental compilation-->
                      <!-- compiler.incremental usage:
                      <incremental>boolean</incremental>
                      -->
                      <!-- compiler.isolate-styles: enables the compiled application or module to set styles that only affect itself and its children-->
                      <!-- compiler.isolate-styles usage:
                      <isolate-styles>boolean</isolate-styles>
                      -->
                      <!-- compiler.keep-all-type-selectors: disables the pruning of unused CSS type selectors-->
                      <!-- compiler.keep-all-type-selectors usage:
                      <keep-all-type-selectors>boolean</keep-all-type-selectors>
                      -->
                      <!-- compiler.keep-as3-metadata: keep the specified metadata in the SWF-->
                      <!-- compiler.keep-as3-metadata usage:
                      <keep-as3-metadata>
                         <name>string</name>
                         <name>string</name>
                      </keep-as3-metadata>
                      -->
                      <!-- compiler.keep-generated-actionscript: save temporary source files generated during MXML compilation-->
                      <keep-generated-actionscript>false</keep-generated-actionscript>
                      <!-- compiler.library-path: list of SWC files or directories that contain SWC files-->
                      <library-path>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\textLayout.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\osmf.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\framework.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\spark.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\sparkskins.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\rpc.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\datavisualization.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\flash-integration.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\flex.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\libs\utilities.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.160 76\frameworks\locale\{locale}</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\Voice\release\Voice.swc</path-ele ment>
                         <path-element>C:\dev_projects\features\flex4version\web\as3Logger\release\as3logger.swc</ path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\PureMVC\PureMVC_AS3_2_0 _4.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\StartupManager\Utility_ AS3_StartupManager_1_6_1.swc</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\TLibrary\release\TVCLibrary.swc</ path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\as3ds_1.04\as3ds.swc</p ath-element>
                         <path-element>C:\dev_projects\features\flex4version\web\libraries\FlexUnit\FlexUnit.swc</ path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\WebService\release\WebService.swc </path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\MVCLibrary\release\MVCLibrary.swc </path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\FlexUIView\release\FlexUIView.swc </path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\NagbLibrary\bin-debug\NagbLibrary .swc</path-element>
                      </library-path>
                      <!-- compiler.locale: specifies the locale for internationalization-->
                      <locale>
                         <locale-element>en_US</locale-element>
                      </locale>
                      <!-- compiler.minimum-supported-version usage:
                      <minimum-supported-version>string</minimum-supported-version>
                      -->
                      <mxml>
                         <!-- compiler.mxml.compatibility-version: specifies a compatibility version. e.g. -compatibility-version=2.0.1-->
                         <!-- compiler.mxml.compatibility-version usage:
                         <compatibility-version>version</compatibility-version>
                         -->
                         <!-- compiler.mxml.minimum-supported-version usage:
                         <minimum-supported-version>string</minimum-supported-version>
                         -->
                         <!-- compiler.mxml.qualified-type-selectors usage:
                         <qualified-type-selectors>boolean</qualified-type-selectors>
                         -->
                      </mxml>
                      <namespaces>
                         <!-- compiler.namespaces.namespace: Specify a URI to associate with a manifest of components for use as MXML elements-->
                         <namespace>
                            <uri>http://ns.adobe.com/mxml/2009</uri>
                            <manifest>mxml-2009-manifest.xml</manifest>
                         </namespace>
                         <namespace>
                            <uri>library://ns.adobe.com/flex/spark</uri>
                            <manifest>spark-manifest.xml</manifest>
                         </namespace>
                         <namespace>
                            <uri>library://ns.adobe.com/flex/mx</uri>
                            <manifest>mx-manifest.xml</manifest>
                         </namespace>
                         <namespace>
                            <uri>http://www.adobe.com/2006/mxml</uri>
                            <manifest>mxml-manifest.xml</manifest>
                         </namespace>
                      </namespaces>
                      <!-- compiler.omit-trace-statements: toggle whether trace statements are omitted-->
                      <omit-trace-statements>true</omit-trace-statements>
                      <!-- compiler.optimize: Enable post-link SWF optimization-->
                      <optimize>true</optimize>
                      <!-- compiler.report-invalid-styles-as-warnings: enables reporting of invalid styles as warnings-->
                      <!-- compiler.report-invalid-styles-as-warnings usage:
                      <report-invalid-styles-as-warnings>boolean</report-invalid-styles-as-warnings>
                      -->
                      <!-- compiler.services: path to Flex Data Services configuration file-->
                      <!-- compiler.services usage:
                      <services>filename</services>
                      -->
                      <!-- compiler.show-actionscript-warnings: runs the AS3 compiler in a mode that detects legal but potentially incorrect code-->
                      <show-actionscript-warnings>true</show-actionscript-warnings>
                      <!-- compiler.show-binding-warnings: toggle whether warnings generated from data binding code are displayed-->
                      <show-binding-warnings>true</show-binding-warnings>
                      <!-- compiler.show-invalid-css-property-warnings: toggle whether invalid css property warnings are reported-->
                      <!-- compiler.show-invalid-css-property-warnings usage:
                      <show-invalid-css-property-warnings>boolean</show-invalid-css-property-warnings>
                      -->
                      <!-- compiler.show-shadowed-device-font-warnings: toggles whether warnings are displayed when an embedded font name shadows a device font name-->
                      <show-shadowed-device-font-warnings>false</show-shadowed-device-font-warnings>
                      <!-- compiler.show-unused-type-selector-warnings: toggle whether warnings generated from unused CSS type selectors are displayed-->
                      <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
                      <!-- compiler.source-path: list of path elements that form the roots of ActionScript class hierarchies-->
                      <source-path>
                         <path-element>C:\dev_projects\features\flex4version\web\VCNagMgmt\src</path-element>
                         <path-element>C:\dev_projects\features\flex4version\web\VCNagMgmt\locale\{locale}</path-e lement>
                      </source-path>
                      <!-- compiler.strict: runs the AS3 compiler in strict error checking mode.-->
                      <strict>true</strict>
                      <!-- compiler.theme: list of CSS or SWC files to apply as a theme-->
                      <theme>
                         <filename>themes/Spark/spark.css</filename>
                      </theme>
                      <!-- compiler.use-resource-bundle-metadata: determines whether resources bundles are included in the application.-->
                      <use-resource-bundle-metadata>true</use-resource-bundle-metadata>
                      <!-- compiler.verbose-stacktraces: save callstack information to the SWF for debugging-->
                      <verbose-stacktraces>false</verbose-stacktraces>
                      <!-- compiler.warn-array-tostring-changes: Array.toString() format has changed.-->
                      <warn-array-tostring-changes>false</warn-array-tostring-changes>
                      <!-- compiler.warn-assignment-within-conditional: Assignment within conditional.-->
                      <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
                      <!-- compiler.warn-bad-array-cast: Possibly invalid Array cast operation.-->
                      <warn-bad-array-cast>true</warn-bad-array-cast>
                      <!-- compiler.warn-bad-bool-assignment: Non-Boolean value used where a Boolean value was expected.-->
                      <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
                      <!-- compiler.warn-bad-date-cast: Invalid Date cast operation.-->
                      <warn-bad-date-cast>true</warn-bad-date-cast>
                      <!-- compiler.warn-bad-es3-type-method: Unknown method.-->
                      <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
                      <!-- compiler.warn-bad-es3-type-prop: Unknown property.-->
                      <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
                      <!-- compiler.warn-bad-nan-comparison: Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN.-->
                      <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
                      <!-- compiler.warn-bad-null-assignment: Impossible assignment to null.-->
                      <warn-bad-null-assignment>true</warn-bad-null-assignment>
                      <!-- compiler.warn-bad-null-comparison: Illogical comparison with null.-->
                      <warn-bad-null-comparison>true</warn-bad-null-comparison>
                      <!-- compiler.warn-bad-undefined-comparison: Illogical comparison with undefined.  Only untyped variables (or variables of type *) can be undefined.-->
                      <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
                      <!-- compiler.warn-boolean-constructor-with-no-args: Boolean() with no arguments returns false in ActionScript 3.0.  Boolean() returned undefined in ActionScript 2.0.-->
                      <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
                      <!-- compiler.warn-changes-in-resolve: __resolve is no longer supported.-->
                      <warn-changes-in-resolve>false</warn-changes-in-resolve>
                      <!-- compiler.warn-class-is-sealed: Class is sealed.  It cannot have members added to it dynamically.-->
                      <warn-class-is-sealed>true</warn-class-is-sealed>
                      <!-- compiler.warn-const-not-initialized: Constant not initialized.-->
                      <warn-const-not-initialized>true</warn-const-not-initialized>
                      <!-- compiler.warn-constructor-returns-value: Function used in new expression returns a value.  Result will be what the function returns, rather than a new instance of that function.-->
                      <warn-constructor-returns-value>false</warn-constructor-returns-value>
                      <!-- compiler.warn-deprecated-event-handler-error: EventHandler was not added as a listener.-->
                      <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
                      <!-- compiler.warn-deprecated-function-error: Unsupported ActionScript 2.0 function.-->
                      <warn-deprecated-function-error>true</warn-deprecated-function-error>
                      <!-- compiler.warn-deprecated-property-error: Unsupported ActionScript 2.0 property.-->
                      <warn-deprecated-property-error>true</warn-deprecated-property-error>
                      <!-- compiler.warn-duplicate-argument-names: More than one argument by the same name.-->
                      <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
                      <!-- compiler.warn-duplicate-variable-def: Duplicate variable definition -->
                      <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
                      <!-- compiler.warn-for-var-in-changes: ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order.-->
                      <warn-for-var-in-changes>false</warn-for-var-in-changes>
                      <!-- compiler.warn-import-hides-class: Importing a package by the same name as the current class will hide that class identifier in this scope.-->
                      <warn-import-hides-class>true</warn-import-hides-class>
                      <!-- compiler.warn-instance-of-changes: Use of the instanceof operator.-->
                      <warn-instance-of-changes>true</warn-instance-of-changes>
                      <!-- compiler.warn-internal-error: Internal error in compiler.-->
                      <warn-internal-error>true</warn-internal-error>
                      <!-- compiler.warn-level-not-supported: _level is no longer supported. For more information, see the flash.display package.-->
                      <warn-level-not-supported>true</warn-level-not-supported>
                      <!-- compiler.warn-missing-namespace-decl: Missing namespace declaration (e.g. variable is not defined to be public, private, etc.).-->
                      <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
                      <!-- compiler.warn-negative-uint-literal: Negative value will become a large positive value when assigned to a uint data type.-->
                      <warn-negative-uint-literal>true</warn-negative-uint-literal>
                      <!-- compiler.warn-no-constructor: Missing constructor.-->
                      <warn-no-constructor>false</warn-no-constructor>
                      <!-- compiler.warn-no-explicit-super-call-in-constructor: The super() statement was not called within the constructor.-->
                      <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constru ctor>
                      <!-- compiler.warn-no-type-decl: Missing type declaration.-->
                      <warn-no-type-decl>true</warn-no-type-decl>
                      <!-- compiler.warn-number-from-string-changes: In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns NaN in ActionScript 2.0 when the parameter is '' or contains white space.-->
                      <warn-number-from-string-changes>false</warn-number-from-string-changes>
                      <!-- compiler.warn-scoping-change-in-this: Change in scoping for the this keyword.  Class methods extracted from an instance of a class will always resolve this back to that instance.  In ActionScript 2.0 this is looked up dynamically based on where the method is invoked from.-->
                      <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
                      <!-- compiler.warn-slow-text-field-addition: Inefficient use of += on a TextField.-->
                      <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
                      <!-- compiler.warn-unlikely-function-value: Possible missing parentheses.-->
                      <warn-unlikely-function-value>true</warn-unlikely-function-value>
                      <!-- compiler.warn-xml-class-has-changed: Possible usage of the ActionScript 2.0 XML class.-->
                      <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
                   </compiler>
                   <!-- debug-password: the password to include in debuggable SWFs-->
                   <!-- debug-password usage:
                   <debug-password>string</debug-password>
                   -->
                   <!-- default-background-color: default background color (may be overridden by the application code)-->
                   <default-background-color>0xFFFFFF</default-background-color>
                   <!-- default-frame-rate: default frame rate to be used in the SWF.-->
                   <default-frame-rate>24</default-frame-rate>
                   <!-- default-script-limits: default script execution limits (may be overridden by root attributes)-->
                   <default-script-limits>
                      <max-recursion-depth>1000</max-recursion-depth>
                      <max-execution-time>60</max-execution-time>
                   </default-script-limits>
                   <!-- default-size: default application size (may be overridden by root attributes in the application)-->
                   <default-size>
                      <width>500</width>
                      <height>375</height>
                   </default-size>
                   <!-- externs: a list of symbols to omit from linking when building a SWF-->
                   <!-- externs usage:
                   <externs>
                      <symbol>string</symbol>
                      <symbol>string</symbol>
                   </externs>
                   -->
                   <frames>
                      <!-- frames.frame: A SWF frame label with a sequence of classnames that will be linked onto the frame.-->
                      <!-- frames.frame usage:
                      <frame>
                         <label>string</label>
                         <classname>string</classname>
                      </frame>
                      -->
                   </frames>
                   <framework>halo</framework>
                   <!-- include-resource-bundles: a list of resource bundles to include in the output SWC-->
                   <!-- include-resource-bundles usage:
                   <include-resource-bundles>
                      <bundle>string</bundle>
                      <bundle>string</bundle>
                   </include-resource-bundles>
                   -->
                   <!-- includes: a list of symbols to always link in when building a SWF-->
                   <!-- includes usage:
                   <includes>
                      <symbol>string</symbol>
                      <symbol>string</symbol>
                   </includes>
                   -->
                   <!-- link-report: Output a XML-formatted report of all definitions linked into the application.-->
                   <!-- link-report usage:
                   <link-report>filename</link-report>
                   -->
                   <!-- load-config: load a file containing configuration options-->
                   <load-config>${flexlib}/${configname}-config.xml</load-config>
                   <!-- load-externs: an XML file containing <def>, <pre>, and <ext> symbols to omit from linking when building a SWF-->
                   <!-- load-externs usage:
                   <load-externs>filename</load-externs>
                   -->
                   <metadata>
                      <!-- metadata.contributor: A contributor's name to store in the SWF metadata-->
                      <!-- metadata.contributor usage:
                      <contributor>name</contributor>
                      -->
                      <!-- metadata.creator: A creator's name to store in the SWF metadata-->
                      <creator>unknown</creator>
                      <!-- metadata.date: The creation date to store in the SWF metadata-->
                      <!-- metadata.date usage:
                      <date>text</date>
                      -->
                      <!-- metadata.description: The default description to store in the SWF metadata-->
                      <description>http://www.adobe.com/products/flex</description>
                      <!-- metadata.language: The language to store in the SWF metadata (i.e. EN, FR)-->
                      <language>EN</language>
                      <!-- metadata.localized-description: A localized RDF/XMP description to store in the SWF metadata-->
                      <!-- metadata.localized-description usage:
                      <localized-description>
                         <text>string</text>
                         <lang>string</lang>
                         <lang>string</lang>
                      </localized-description>
                      -->
                      <!-- metadata.localized-title: A localized RDF/XMP title to store in the SWF metadata-->
                      <!-- metadata.localized-title usage:
                      <localized-title>
                         <title>string</title>
                         <lang>string</lang>
                         <lang>string</lang>
                      </localized-title>
                      -->
                      <!-- metadata.publisher: A publisher's name to store in the SWF metadata-->
                      <publisher>unknown</publisher>
                      <!-- metadata.title: The default title to store in the SWF metadata-->
                      <title>Adobe Flex 4 Application</title>
                   </metadata>
                   <!-- raw-metadata: XML text to store in the SWF metadata (overrides metadata.* configuration)-->
                   <!-- raw-metadata usage:
                   <raw-metadata>text</raw-metadata>
                   -->
                   <!-- resource-bundle-list: prints a list of resource bundles to a file for input to the compc compiler to create a resource bundle SWC file. -->
                   <!-- resource-bundle-list usage:
                   <resource-bundle-list>filename</resource-bundle-list>
                   -->
                   <!-- runtime-shared-libraries: a list of runtime shared library URLs to be loaded before the application starts-->
                   <!-- runtime-shared-libraries usage:
                   <runtime-shared-libraries>
                      <url>string</url>
                      <url>string</url>
                   </runtime-shared-libraries>
                   -->
                   <!-- runtime-shared-library-path usage:
                   <runtime-shared-library-path>
                      <path-element>string</path-element>
                      <rsl-url>string</rsl-url>
                      <policy-file-url>string</policy-file-url>
                   </runtime-shared-library-path>
                   -->
                   <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
                   <static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
                   <!-- target-player: specifies the version of the player the application is targeting. Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".-->
                   <target-player>10.0.0</target-player>
                   <!-- tools-locale: specifies the locale used by the compiler when reporting errors and warnings.-->
                   <!-- tools-locale usage:
                   <tools-locale>string</tools-locale>
                   -->
                   <!-- use-network: toggle whether the SWF is flagged for access to network resources-->
                   <use-network>true</use-network>
                   <!-- verify-digests: verifies the libraries loaded at runtime are the correct ones.-->
                   <verify-digests>false</verify-digests>
                   <!-- warnings: toggle the display of warnings-->
                   <!-- warnings usage:
                   <warnings>boolean</warnings>
                   -->
                </flex-config>

                ========================================================================================== =================

                 

                 

                 

                 

                 

                 

                 

                ANT TASK:

                 

                (I simply call "ant")

                 

                Here are the tasks (some names have been changed to protect the innocent):

                 

                 

                <project name="TMUI" basedir="." default="all">
                    <property file="custom.properties"/>

                 

                    <property name="apache.exe"          value="${apache.dir}/bin/httpd.exe"/>
                    <property name="Tm.ui.server.name"  value="TmUIWebServer"/>

                 

                    <!-- flex ant tasks -->
                    <taskdef resource="flexTasks.tasks" classpath="${flex.ant.tasks.dir}/flexTasks.jar" />

                 


                    <!--
                        ==================================
                            Release-specific build targets
                        ==================================
                    -->
                    <!-- 1.0 -->
                    <target name="threethreezero" description="Builds T UI 1.0 artifacts" depends="init,libraries">
                        <subant target="all" inheritall="false">
                            <filelist dir="UIView"                files="build.xml"/>
                            <filelist dir="FlexTAccess"                files="build.xml"/>
                            <filelist dir="FlexUI"                      files="build.xml"/>
                            <filelist dir="TProEdit"             files="build.xml"/>
                            <filelist dir="TProfileWizard"             files="build.xml"/>
                            <filelist dir="TNet"               files="build.xml"/>
                            <filelist dir="TConfig"   files="build.xml"/>
                            <filelist dir="TFabric"                files="build.xml"/>
                            <filelist dir="TDMWizard"              files="build.xml"/>
                            <filelist dir="TVirtualSettings"           files="build.xml"/>
                            <filelist dir="TNag"                   files="build.xml"/>
                            <filelist dir="iscsiBA"                     files="build.xml"/>
                        </subant>
                        <antcall target="copyFlexRuntime"   inheritall="true"/>
                        <antcall target="deployWsdlAndXsd"  inheritall="true"/>
                    </target>
                   
                    <!-- 3.00 -->
                    <target name="threezerozero" description="Builds T UI 3.00 artifacts" depends="init">
                        <subant target="all" inheritall="false">
                            <filelist dir="Loggr"                   files="build.xml"/>
                            <filelist dir="StyleVce"                    files="build.xml"/>
                            <filelist dir="TLibrary"                   files="build.xml"/>
                            <filelist dir="TWebService"                files="build.xml"/>
                            <filelist dir="Infrastructure"              files="build.xml"/>
                            <filelist dir="TErrorManagement"           files="build.xml"/>
                            <filelist dir="MTLibrary"                  files="build.xml"/>
                            <filelist dir="UIView"                files="build.xml"/>
                            <filelist dir="TSLib"        files="build.xml"/>
                            <filelist dir="FlexUI"                      files="build.xml"/>
                            <filelist dir="TProEdit"             files="build.xml"/>
                            <filelist dir="TNet"               files="build.xml"/>
                            <filelist dir="TConfig"   files="build.xml"/>
                            <filelist dir="TFabric"                files="build.xml"/>
                            <filelist dir="TVirtualSettings"           files="build.xml"/>
                        </subant>
                        <antcall target="copyFlexRuntime"   inheritall="true"/>
                        <antcall target="deployWsdlAndXsd"  inheritall="true"/>
                    </target>
                   
                    <!-- 2.30 -->
                    <target name="twothreezero" description="Builds on T 2.30 artifacts" depends="init">
                        <subant target="all" inheritall="false">
                            <filelist dir="Loggr"                   files="build.xml"/>
                            <filelist dir="StyleVce"                    files="build.xml"/>
                            <filelist dir="TLibrary"                   files="build.xml"/>
                            <filelist dir="TWebService"                files="build.xml"/>
                            <filelist dir="Infrastructure"              files="build.xml"/>
                            <filelist dir="MTLibrary"                  files="build.xml"/>
                            <filelist dir="FlexUI"                      files="build.xml"/>
                        </subant>
                        <antcall target="copyFlexRuntime" inheritall="true"/>
                    </target>
                   
                   
                    <!-- Generating Help files through a simple 'ant genHelpFiles' command. -->
                    <target name="genHelpFiles" description="Builds all Help Files" depends="init">
                        <subant target="genHelpFiles" inheritall="false">
                            <filelist dir="ditaHelpfiles"   files="build.xml"/>
                        </subant>
                    </target>

                 

                    <!-- Build only the AS3 libraries. -->
                    <target name="libraries" description="Builds all T UI Library projects" depends="init">
                        <subant target="all" inheritall="false">
                            <filelist dir="Loggr"               files="build.xml"/>
                            <filelist dir="StyleVce"                files="build.xml"/>
                            <filelist dir="TLibrary"               files="build.xml"/>
                            <filelist dir="TWebService"            files="build.xml"/>
                            <filelist dir="TCustomComponent"       files="build.xml"/>
                            <filelist dir="Infrastructure"          files="build.xml"/>
                            <filelist dir="TErrorManagement"       files="build.xml"/>
                            <filelist dir="MTLibrary"              files="build.xml"/>
                            <filelist dir="BALibrary"               files="build.xml"/>
                            <filelist dir="UIView"            files="build.xml"/>
                            <filelist dir="NagLibrary"        files="build.xml"/>
                        </subant>
                        <antcall target="copyFlexRuntime"   inheritall="true"/>
                        <antcall target="deployWsdlAndXsd"  inheritall="true"/>
                    </target>
                   
                    <target name="all" description="Builds all AS3 and Flex projects" depends="init">
                        <subant target="all" inheritall="false">
                            <filelist dir="Loggr"                   files="build.xml"/>
                            <filelist dir="TCustomComponent"           files="build.xml"/>
                            <filelist dir="StyleVce"                    files="build.xml"/>
                            <!-- filelist dir="CLibrary"                    files="build.xml"/ -->
                            <filelist dir="TLibrary"                   files="build.xml"/>
                            <filelist dir="TWebService"                files="build.xml"/>
                            <filelist dir="Infrastructure"              files="build.xml"/>
                            <filelist dir="TErrorManagement"           files="build.xml"/>
                            <filelist dir="MTLibrary"                  files="build.xml"/>
                            <filelist dir="BALibrary"                   files="build.xml"/>
                            <filelist dir="NagLibrary"                  files="build.xml"/>
                            <filelist dir="UIView"                files="build.xml"/>
                            <!-- filelist dir="TSLib"      files="build.xml"/ -->
                            <!-- filelist dir="FlexTAccess"                files="build.xml"/ -->
                            <filelist dir="FlexUI"                      files="build.xml"/>
                            <filelist dir="TProEdit"             files="build.xml"/>
                            <filelist dir="TNet"               files="build.xml"/>
                            <filelist dir="TConfig"   files="build.xml"/>
                            <filelist dir="TDMWizard"              files="build.xml"/>
                            <filelist dir="TFabric"                files="build.xml"/>
                            <filelist dir="TVirtualSettings"           files="build.xml"/>
                            <filelist dir="TDMStatus"              files="build.xml"/>
                            <filelist dir="iscsiBA"                     files="build.xml"/>
                            <filelist dir="TNag"                   files="build.xml"/>
                        </subant>
                        <antcall target="copyFlexRuntime" inheritall="true"/>
                        <antcall target="deployWsdlAndXsd" inheritall="true"/>
                    </target>

                 

                    <!--
                     Move the xercesPatch.jar file for Fenway builds.  Building in the Fenway
                     dev. env. fails unless this file is renamed.  See
                     http://bugs.adobe.com/jira/browse/SDK-14519.
                    -->
                    <condition property="move.xercespatch.run">
                        <equals arg1="${Ttarget}" arg2="Track" casesensitive="false" />
                    </condition>

                 

                    <target name="move.xercespatch" if="move.xercespatch.run">
                        <move file="${xercesPatch.jar}" tofile="${xercesPatch.jar}.backup" failonerror="false" />
                    </target>
                   
                    <target name="all.test" description="Builds all AS3 and Flex projects (TProEdit with automation libraries)" depends="clean,init,copyAutomationFiles">
                        <subant target="all" inheritall="false">
                            <filelist dir="Loggr"               files="build.xml"/>
                            <filelist dir="StyleVce"                files="build.xml"/>
                            <filelist dir="TLibrary"               files="build.xml"/>
                            <filelist dir="TWebService"            files="build.xml"/>
                            <filelist dir="Infrastructure"          files="build.xml"/>
                            <filelist dir="TErrorManagement"       files="build.xml"/>
                            <filelist dir="MTLibrary"              files="build.xml"/>
                            <filelist dir="BALibrary"               files="build.xml"/>
                            <filelist dir="NagLibrary"              files="build.xml"/>
                            <filelist dir="UIView"            files="build.xml"/>
                            <filelist dir="TSLib"    files="build.xml"/>
                            <filelist dir="FlexUI"                  files="build.xml"/>
                            <!--filelist dir="FlexTAccess"            files="build.xml"/-->
                        </subant>
                        <subant target="all.test" inheritall="false">
                            <filelist dir="TProEdit"             files="build.xml"/>
                            <filelist dir="TNet"               files="build.xml"/>
                            <filelist dir="TConfig"   files="build.xml"/>
                            <filelist dir="TDMWizard"              files="build.xml"/>
                            <filelist dir="TFabric"                files="build.xml"/>
                            <filelist dir="TVirtualSettings"           files="build.xml"/>
                            <filelist dir="TDMStatus"              files="build.xml"/>
                            <filelist dir="TNag"                   files="build.xml"/>
                        </subant>
                        <antcall target="copyFlexRuntime" inheritall="true"/>
                        <antcall target="deployWsdlAndXsd" inheritall="true"/>
                    </target>

                 

                    <target name="clean" description="-- Remove all build artifacts">
                        <subant target="clean" inheritall="false">
                            <filelist dir="Loggr"                   files="build.xml"/>
                            <filelist dir="StyleVce"                    files="build.xml"/>
                            <filelist dir="TLibrary"                   files="build.xml"/>
                            <filelist dir="TWebService"                files="build.xml"/>
                            <filelist dir="TCustomComponent"           files="build.xml"/>
                            <filelist dir="Infrastructure"              files="build.xml"/>
                            <filelist dir="TErrorManagement"           files="build.xml"/>
                            <filelist dir="MTLibrary"                  files="build.xml"/>
                            <filelist dir="BALibrary"                   files="build.xml"/>
                            <filelist dir="NagLibrary"                  files="build.xml"/>
                            <filelist dir="UIView"                files="build.xml"/>
                            <!-- <filelist dir="TSLib"      files="build.xml"/> -->
                            <filelist dir="FlexTAccess"                files="build.xml"/>
                            <filelist dir="TestLoggr"               files="build.xml"/>
                            <filelist dir="TestmyStyleVceControls"      files="build.xml"/>
                            <filelist dir="TestTWebService"            files="build.xml"/>
                            <filelist dir="FlexUI"                      files="build.xml"/>
                            <filelist dir="TProEdit"             files="build.xml"/>
                            <filelist dir="TNet"               files="build.xml"/>
                            <filelist dir="TConfig"   files="build.xml"/>
                            <filelist dir="TDMWizard"              files="build.xml"/>
                            <filelist dir="TFabric"                files="build.xml"/>
                            <filelist dir="TVirtualSettings"           files="build.xml"/>
                            <filelist dir="TDMStatus"              files="build.xml"/>
                            <filelist dir="iscsiBA"                     files="build.xml"/>
                            <filelist dir="TNag"                   files="build.xml"/>
                        </subant>
                        <delete file="${flex.deploy.libs.dir}/${flex.rsl.basename}" verbose="true"/>
                        <delete file="${flex.deploy.wsdl.dir}/MiniTM.wsdl"         verbose="true"/>
                        <delete file="${flex.deploy.wsdl.dir}/MinimyTd.xsd"        verbose="true"/>
                        <delete dir="${flex.deploy.wsdl.dir}"                       verbose="true"/>
                    </target>
                    <!--
                        ==============================
                            Build artifact targets
                        ==============================
                    -->
                    <target name="copyFlexRuntime" description="Copy the the Flex RSL to the Flex deployment directory">

                 

                        <echo message="Copy the the Flex RSL to the Flex deployment directory"/>
                        <copy file="${flex.rsl}"
                              todir="${flex.deploy.libs.dir}"
                              verbose="true"
                              preservelastmodified="true"/>
                    </target>
                   
                    <target name="deployWsdlAndXsd" description="Copy WSDL/XSD combo to Flex deployment directory">
                        <echo message="Copy MinimyTd.xsd file to the Flex deployment directory"/>
                        <copy file="TWebService/${src.dir}/MinimyTd.xsd"
                              todir="${flex.deploy.wsdl.dir}"
                              verbose="true"
                              preservelastmodified="true"
                              />
                        <antcall target="patchAndCopyWSDL" inheritall="true"/>
                    </target>
                   
                    <target name="patchAndCopyWSDL" description="Patch and copy the WSDL to the Flex deployment directory">
                        <fixcrlf srcdir="TWebService/${src.dir}/" eol="unix" includes="MiniTM.wsdl"/>
                        <patch patchfile="TWebService/${src.dir}/MiniTM_release.patch" originalfile="TWebService/${src.dir}/MiniTM.wsdl" destfile="${flex.deploy.wsdl.dir}/MiniTM.wsdl" />
                        <chmod file="${flex.deploy.wsdl.dir}/MiniTM.wsdl" perm="644"/>
                        <echo message="Removing temporary file created during patch process" />
                        <delete verbose="true">
                            <fileset dir=".">
                                <include name="p?????.1"/>
                            </fileset>
                        </delete>
                    </target>
                 
                    <!--
                        =========================================
                            Apache Server management targets.
                        =========================================
                    -->
                    <target name="start.server" description="Starts UI web server;  must be installed as service">
                        <echo message="Start Virtual Connect Manager UI Server"/>

                 

                    <exec dir="" executable="${apache.exe}" spawn="false" output="apache.log" append="true">
                        <arg line="-k start -n ${Tm.ui.server.name}"/>
                        </exec>
                    </target>
                   
                    <target name="stop.server" description="Stops the UI web server;  must be installed as server">
                        <echo message="Stop Virtual Connect Manager UI Server"/>
                        <exec dir="" executable="${apache.exe}" spawn="false" output="apache.log" append="true">
                            <arg line="-k stop -n ${Tm.ui.server.name}"/>
                        </exec>
                    </target>

                 

                    <target name="install.service" description="Must be run before any other server commands.  Install custom Apache Server service">
                        <exec dir="" executable="${apache.exe}" spawn="false" output="apache.log" append="true">
                            <arg line="-k install -n ${Tm.ui.server.name} -f ${apache.conf.file}"/>
                        </exec>
                    </target>

                 

                    <target name="uninstall.service" description="Do this to clean up.  Removes the custom Apache Server service">
                        <exec dir="" executable="${apache.exe}" spawn="false" output="apache.log" append="true">
                            <arg line="-k uninstall -n ${Tm.ui.server.name}"/>
                        </exec>
                    </target>

                 

                   <target name="restart.server" description="Do this after you change the UI content">
                        <exec dir="" executable="${apache.exe}" spawn="false" output="apache.log" append="true">
                            <arg line="-k restart -n ${Tm.ui.server.name}"/>
                        </exec>
                    </target>

                 

                    <!--
                        ==============================
                            Initialization targets
                        ==============================
                    -->
                    <target name="init"    depends="unzip.flex" description="Do sandbox initialization"/>
                    <target name="check.unzip.flex">
                        <available property="unzip.flex.notRequired" file="${flex.home}" type="dir"/>
                    </target>

                 

                    <target name="unzip.flex" depends="check.unzip.flex" unless="unzip.flex.notRequired" description="Only unzips if necessary">

                 

                        <echo level="info" message="flex.home:     '${flex.home}'"    />
                        <echo level="info" message="flex.sdk.dir:  '${flex.sdk.dir}'" />
                        <echo level="info" message="flex.zip.file: '${flex.zip.file}'"/>
                        <mkdir dir="${flex.home}"/>
                        <unzip src="${flex.sdk.dir}/${flex.zip.file}" dest="${flex.home}" />

                 

                        <echo message=""/>
                        <echo message="Cleanup extracted SDK"/>
                        <delete dir="${flex.home}/samples/"/>
                        <delete dir="${flex.home}/samples/ant/"/>
                        <delete dir="${flex.home}/runtimes/player/"/>
                        <delete dir="${flex.home}/runtimes/air/mac"/>
                        <delete file="${flex.home}/ant/lib/flexTasks.jar"/>

                 

                        <echo message=""/>
                        <echo message="Place data visualization library and resource bundle in extracted SDK"/>

                 

                        <copy description="The data visualization library"
                              verbose="false"
                              file="${flex.sdk.dir}/datavisualization.swc"
                              todir="${flex.home}/frameworks/libs/"
                              preservelastmodified="true"
                              />
                        <copy description="The data visualization resource bundle"
                              verbose="false"
                              file="${flex.sdk.dir}/datavisualization_rb.swc"
                              todir="${flex.home}/frameworks/locale/en_US/"
                              preservelastmodified="true"
                              />
                    </target>

                 

                    <target name="cleanSDK" description="Removes the unzipped Flex SDK">
                        <echo message="Remove current SDK binaries -- ${flex.home}"/>
                        <delete verbose="false" failonerror="false" deleteonexit="true" dir="${flex.home}"/>
                        </target>
                    <target name="copyAutomationFiles">

                 

                        <copy description="Automation file"
                              verbose="false"
                              file="${flex.sdk.dir}/automation_dmv.swc"
                              todir="${flex.home}/frameworks/libs/"
                              preservelastmodified="true"
                              />
                        <copy description="Automation file"
                              verbose="false"
                              file="${flex.sdk.dir}/qtp.swc"
                              todir="${flex.home}/frameworks/libs/"
                              preservelastmodified="true"
                              />
                        <copy description="Automation file"
                              verbose="false"
                              file="${flex.sdk.dir}/automation.swc"
                              todir="${flex.home}/frameworks/libs/"
                              preservelastmodified="true"
                              />
                        <copy description="Automation file"
                              verbose="false"
                              file="${flex.sdk.dir}/automation_agent.swc"
                              todir="${flex.home}/frameworks/libs/"
                              preservelastmodified="true"
                              />
                        <copy description="Automation file resource bundle"
                              verbose="false"
                              file="${flex.sdk.dir}/automation_rb.swc"
                              todir="${flex.home}/frameworks/locale/en_US/"
                              preservelastmodified="true"
                              />
                        <copy description="Automation file resource bundle"
                              verbose="false"
                              file="${flex.sdk.dir}/automation_agent_rb.swc"
                              todir="${flex.home}/frameworks/locale/en_US/"
                              preservelastmodified="true"
                              />
                    </target>
                </project>

                 

                ========================================================================================== ====

                • 5. Re: still getting mx:HierarchicalData not found during ant build
                  Gaurav J Adobe Employee

                  The error is coming from the <compc> task but there is no compc call in the ant file that you posted. So I guess you are calling it from another ant file. Can you post the ant file that contains the compc call?

                   

                  Also from the output it seems that the flex-config.xml is loaded from C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex-config.xml

                   

                  but the swc are at C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.16076\frameworks\ libs\

                   

                  Have you changed the sdk structure here ? because I would have expected flex-config.xml to be under C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex_4.1.0.16076\frameworks

                   

                  -Gaurav

                  http://www.gauravj.com/blog

                  • 6. Re: still getting mx:HierarchicalData not found during ant build
                    flairjax Level 1

                    Yes, we have moved the flex-config.xml file so that when upgrade to a new sdk we don't have to copy our flex-config.xml file into the directory.  Versioning of software related reasons.


                    COMPC

                     

                    <project name="MAG Library" basedir="." default="all">
                       
                        <property file="../custom.properties" />
                        <property name="componentName"      value="MagbLibrary"           />
                        <property name="swcFile"            value="${componentName}.swc" />
                         <property name="fqSwcFile"         value="${dist.dir}/${swcFile}"/>

                     

                        <taskdef resource="flexTasks.tasks" classpath="${flex.ant.tasks.dir}/flexTasks.jar" />

                     

                        <target name="all"     depends="compile" description="Build the MAGB UI library" />
                        <target name="compile"                   description="-- Compiles project code to binary" >

                     


                            <echo message="Compiling ${ant.project.name}"/>
                            <compc  dir="${basedir}"
                                    output="${dist.dir}/${swcFile}"
                                    fork="true"
                                    actionscript-file-encoding="UTF-8"
                                    keep-generated-actionscript="false"
                                    show-binding-warnings="true"
                                    show-actionscript-warnings="true"
                                    incremental="false"
                                    locale="en_US"
                                    >
                                    <jvmarg value="-Xmx512M"/>
                                    <jvmarg value="-Xms512M" />
                                   
                                    <compiler.include-libraries append="true" dir="${lib.dir}">
                                        <include name="PureMT/PureMT_AS3_${puremT.version}}.swc"/>
                                        <include name="StartupManager/Utility_AS3_StartupManager_${startupmanager.version}.swc"/>
                                        <include name="PureMTConsole/PureMTConsole.swc"          />

                     


                                    </compiler.include-libraries>
                                   
                                    <compiler.include-libraries append="true" dir="../">
                                        <include name="Loggr/${dist.dir}/as3logger.swc" />
                                        <include name="Voice/${dist.dir}/Voice.swc"   />
                                        <include name="TLibrary/${dist.dir}/TLibrary.swc" />
                                        <include name="TWebService/${dist.dir}/TWebService.swc" />
                                        <include name="MTLibrary/${dist.dir}/MTLibrary.swc"/>

                     

                                    </compiler.include-libraries>

                     


                                    <source-path path-element="${src.dir}" />
                                    <source-path path-element="locale/en_US"/>

                     

                                    <include-resource-bundles bundle="MagbLibraryMessages"/>
                                    <load-config filename="${flex.config.file}"/>

                     

                                    <namespace uri="http://www.myco.com/naglib" manifest="src/components.xml" />
                                    <include-namespaces uri="http://www.myco.com/nagblib" />

                     

                                    <define name="Config::Debug"        value="${config.debug}"  />
                                    <define name="Config::Release"      value="${config.release}"/>
                                    <define name="Config::SLocalOn"  value="${config.sLocalOn}"/>
                                    <define name="Config::SLocalOff" value="${config.sLocalOff}"/>
                            </compc>
                        </target>

                     

                        <target name="docs" description="-- Create project documentation">

                     

                            <mkdir dir="${doc.dir}" />
                            <!-- Generate the asdoc -->
                            <exec executable ="${flex.home}/bin/asdoc.exe" failonerror="false">
                                <arg line='-doc-sources "${src.dir}"'   />
                                <arg line='-source-path="${src.dir}"'   />
                                <arg line='-main-title "myco ${ant.project.name}"'    />
                                <arg line='-output "${doc.dir}"'                    />
                                <arg line='-compiler.debug'                         />
                                <arg line='-compiler.external-library-path="${lib.dir}","${flex.home}/lib","${dist.dir}"' />
                                <arg value='-define=Config::Debug,true' />
                                <arg value='-define=Config::Release,false' />
                                <arg value='-define=Config::SLocalOn,true'  />
                                <arg value='-define=Config::SLocalOff,false'/>
                                <arg value="-define=Config::Assert,true" />
                                <arg value="-define=Config::WsIp,'\'127.330.330.331\''"/>       
                            </exec>
                        </target>

                     

                        <target name="clean" description="-- Remove all build artifacts">
                            <delete dir="${dist.dir}"/>
                            <delete dir="${doc.dir}" />
                        </target>

                     

                    </project>

                    • 7. Re: still getting mx:HierarchicalData not found during ant build
                      Gaurav J Adobe Employee

                      Change <include-namespaces uri="http://www.myco.com/nagblib" /> to <include-namespaces uri="http://www.myco.com/nagblib" append="true" />

                       

                      -Gaurav

                      http://www.gauravj.com/blog

                      • 8. Re: still getting mx:HierarchicalData not found during ant build
                        flairjax Level 1

                        When I append I get  The <include-namespaces> type doesn't support the "append" attribute

                        • 9. Re: still getting mx:HierarchicalData not found during ant build
                          flairjax Level 1

                          When I open the new spark and mx component swc's (NOT the 2006 swc) the HierarchicalData isn't in it, only in the 2006 mx swc.

                           

                          Jason

                          • 10. Re: still getting mx:HierarchicalData not found during ant build
                            Flex harUI Adobe Employee

                            Should always be in the datavisualization.swc.  Is it there for you?

                            • 11. Re: still getting mx:HierarchicalData not found during ant build
                              flairjax Level 1

                              Yes, it is as follows.  <component className="mx.collections:HierarchicalData" name="HierarchicalData" uri="http://www.adobe.com/2006/mxml"  />

                              • 12. Re: still getting mx:HierarchicalData not found during ant build
                                Flex harUI Adobe Employee

                                And is that SWC in the library-path? And you are using the 2006 namespace

                                for mx?

                                • 13. Re: still getting mx:HierarchicalData not found during ant build
                                  Gaurav J Adobe Employee

                                  Actually the append attribute was added in the current release. I believe you are running into http://bugs.adobe.com/jira/browse/SDK-27881

                                   

                                  To workaround: You will have to add definitions of other namespaces to the compc call. Alternatively you can put the namespace declaration in a seperate config file and load that using -load-config+=

                                   

                                  -Gaurav

                                  http://www.gauravj.com/blog

                                  • 14. Re: still getting mx:HierarchicalData not found during ant build
                                    flairjax Level 1

                                    No I am using the 2009 namespace for mx.  Can I change the swc path to something else and use it in my app?  So xmlns:old ....?

                                    • 15. Re: still getting mx:HierarchicalData not found during ant build
                                      Flex harUI Adobe Employee

                                      The Flex 4 datavisualization.swc should have the 2009 namespace as well.

                                      Make sure you're not mixing versions.

                                      • 16. Re: still getting mx:HierarchicalData not found during ant build
                                        flairjax Level 1

                                        I don't see any 2009 reference in datavisualization.swc.

                                         

                                        Examples:

                                        <components>


                                            <component className="mx.charts.effects:SeriesEffect" name="SeriesEffect" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.collections:GroupingField" name="GroupingField" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:GridLines" name="GridLines" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:AreaSet" name="AreaSet" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:LineChart" name="LineChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/LineChart.png"  />
                                            <component className="mx.charts.renderers:LineRenderer" name="LineRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.printing:PrintAdvancedDataGrid" name="PrintAdvancedDataGrid" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:PlotChart" name="PlotChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/PlotChart.png"  />
                                            <component className="mx.charts.renderers:WedgeItemRenderer" name="WedgeItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.chartClasses:DataTip" name="DataTip" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.olap:OLAPCube" name="OLAPCube" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.printing:PrintOLAPDataGrid" name="PrintOLAPDataGrid" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:ColumnSet" name="ColumnSet" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:TriangleItemRenderer" name="TriangleItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:DateTimeAxis" name="DateTimeAxis" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.olap:OLAPSchema" name="OLAPSchema" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:CandlestickChart" name="CandlestickChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/CandlestickChart.png"  />
                                            <component className="mx.charts.effects:SeriesInterpolate" name="SeriesInterpolate" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.collections:SummaryField" name="SummaryField" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.effects:SeriesSlide" name="SeriesSlide" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:PlotSeries" name="PlotSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:CandlestickItemRenderer" name="CandlestickItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:DiamondItemRenderer" name="DiamondItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.collections:HierarchicalData" name="HierarchicalData" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:HLOCItemRenderer" name="HLOCItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.collections:SummaryField2" name="SummaryField2" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:BarChart" name="BarChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/BarChart.png"  />
                                            <component className="mx.charts.series:BarSet" name="BarSet" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.effects:SeriesZoom" name="SeriesZoom" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridColumnGroup" name="AdvancedDataGridColumnGroup" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.collections:GroupingCollection" name="GroupingCollection" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridSortItemRenderer" name="AdvancedDataGridSortItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:CandlestickSeries" name="CandlestickSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.olap:OLAPMeasure" name="OLAPMeasure" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:BoxItemRenderer" name="BoxItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:PieChart" name="PieChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/PieChart.png"  />
                                            <component className="mx.charts.chartClasses:ChartBase" name="ChartBase" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.olap:OLAPHierarchy" name="OLAPHierarchy" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:LogAxis" name="LogAxis" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:HLOCChart" name="HLOCChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/HLOCChart.png"  />
                                            <component className="mx.charts.renderers:AreaRenderer" name="AreaRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridItemRenderer" name="AdvancedDataGridItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridBaseSelectionData" name="AdvancedDataGridBaseSelectionData" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.collections:SummaryRow" name="SummaryRow" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:ColumnSeries" name="ColumnSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.collections:GroupingCollection2" name="GroupingCollection2" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.olap:OLAPMember" name="OLAPMember" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.chartClasses:CartesianChart" name="CartesianChart" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:CrossItemRenderer" name="CrossItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.olap:OLAPAttribute" name="OLAPAttribute" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:ShadowLineRenderer" name="ShadowLineRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.olapDataGridClasses:OLAPDataGridItemRendererProvider" name="OLAPDataGridItemRendererProvider" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls:AdvancedDataGrid" name="AdvancedDataGrid" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:BubbleChart" name="BubbleChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/BubbleChart.png"  />
                                            <component className="mx.collections:HierarchicalCollectionView" name="HierarchicalCollectionView" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:LinearAxis" name="LinearAxis" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:CategoryAxis" name="CategoryAxis" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridHeaderRenderer" name="AdvancedDataGridHeaderRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:AxisRenderer" name="AxisRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.chartClasses:PolarDataCanvas" name="PolarDataCanvas" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:BubbleSeries" name="BubbleSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:SortInfo" name="SortInfo" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.chartClasses:PolarChart" name="PolarChart" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:CircleItemRenderer" name="CircleItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridGroupItemRenderer" name="AdvancedDataGridGroupItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.skins.halo:AdvancedDataGridHeaderHorizontalSeparator" name="AdvancedDataGridHeaderHorizontalSeparator" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:AreaSeries" name="AreaSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.olapDataGridClasses:OLAPDataGridHeaderRendererProvider" name="OLAPDataGridHeaderRendererProvider" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.olap:OLAPDimension" name="OLAPDimension" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:ColumnChart" name="ColumnChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/ColumnChart.png"  />
                                            <component className="mx.controls:OLAPDataGrid" name="OLAPDataGrid" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.olap:OLAPLevel" name="OLAPLevel" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:AreaChart" name="AreaChart" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/AreaChart.png"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridBaseSelectionPending" name="AdvancedDataGridBaseSelectionPending" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridRendererProvider" name="AdvancedDataGridRendererProvider" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.chartClasses:CartesianDataCanvas" name="CartesianDataCanvas" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.controls.advancedDataGridClasses:AdvancedDataGridColumn" name="AdvancedDataGridColumn" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:Legend" name="Legend" uri="http://www.adobe.com/2006/mxml" icon="mx/charts/Legend.png"  />
                                            <component className="mx.charts.series:PieSeries" name="PieSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:LineSeries" name="LineSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:HLOCSeries" name="HLOCSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.renderers:ShadowBoxItemRenderer" name="ShadowBoxItemRenderer" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts.series:BarSeries" name="BarSeries" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.collections:Grouping" name="Grouping" uri="http://www.adobe.com/2006/mxml"  />
                                            <component className="mx.charts:LegendItem" name="LegendItem" uri="http://www.adobe.com/2006/mxml"  />
                                          </components>
                                        • 17. Re: still getting mx:HierarchicalData not found during ant build
                                          Flex harUI Adobe Employee

                                          Looks like HierarchicalData is also in the mx manifest.  What is the

                                          xmlns:mx= in your app?

                                          • 18. Re: still getting mx:HierarchicalData not found during ant build
                                            flairjax Level 1

                                            xmlns:mx="library://ns.adobe.com/flex/mx"

                                            • 19. Re: still getting mx:HierarchicalData not found during ant build
                                              flairjax Level 1

                                              In my project props I have mx+spark set.  Could this be the issue in the build file?  Is there a way to set mx+spark in the build file?

                                              • 21. Re: still getting mx:HierarchicalData not found during ant build
                                                flairjax Level 1

                                                I tried including the mx uri and the manifest (show below)

                                                 

                                                <namespace uri="library://ns.adobe.com/flex/mx" manifest="C:/dev_projects/features/flex4version/web/libraries/flexsdks/flex_4.1.0.16076/f rameworks/mx-manifest.xml" />

                                                 

                                                                <namespace uri="http://www.mycomp.com/naglib" manifest="src/components.xml" />

                                                 

                                                                    <include-namespaces uri="http://www.mycomp.com/naglib"  />

                                                 

                                                                    <include-namespaces uri="library://ns.adobe.com/flex/mx"  />

                                                 

                                                 

                                                But now it can't find the components in the app that are from the library://ns.adobe.com/flex/mx namespace.

                                                 

                                                ERROR  Loading configuration file C:\dev_projects\features\flex4version\web\libraries\flexsdks\flex-config.xml
                                                Error: could not find source for class mx.core:ScrollControlBase in namespace library://ns.adobe.com/flex/mx.

                                                • 22. Re: still getting mx:HierarchicalData not found during ant build
                                                  Gaurav J Adobe Employee

                                                  You are on 4.1.0 build, right? Do you see  mx.core:ScrollControlBase in catalog.xml of framework.swc?

                                                   

                                                  -Gaurav

                                                  http://www.gauravj.com/blog

                                                  • 23. Re: still getting mx:HierarchicalData not found during ant build
                                                    flairjax Level 1

                                                    Yes, its in there. Anytime you put in one of the Adobe namespaces in the build file it tells us that it can't find the files. The minute I remove the Adobe namespace it finds it.

                                                     

                                                    Jason

                                                    • 24. Re: still getting mx:HierarchicalData not found during ant build
                                                      Gaurav J Adobe Employee

                                                      OK. I guess because its not marked with lookupOnly="true", compc is trying to search for the source file.

                                                       

                                                      I guess you will have to use the exec task with compc.jar. Once you move to Hero release you will be ale to use append="true" with include-namespaces.

                                                       

                                                      -Gaurav

                                                      http://www.gauravj.com/blog

                                                      <http://www.gauravj.com/blog

                                                      • 25. Re: still getting mx:HierarchicalData not found during ant build
                                                        flairjax Level 1

                                                        How is that done?  Do you have a link?


                                                        • 26. Re: still getting mx:HierarchicalData not found during ant build
                                                          Gaurav J Adobe Employee

                                                          Similar to the docs target in your build.xml

                                                           

                                                           

                                                           

                                                          -Gaurav

                                                          http://www.gauravj.com/blog