0 Replies Latest reply on Jul 28, 2009 11:01 AM by PeterGoodwine

    Ant build using flexTasks (mxmlc) intermittently fails

    PeterGoodwine

      In building of our SWF, we will frequently get build errors which are not repeatable. That is, a rerun (clean then build) will succeed without any coding or environment modification.

      There are no intermediate build artifacts that are created and the clean removes the build directory, ensuring that nothing unexpected is getting pulled in (e.g. via the first include-libraries directive).

      Errors shown below.

      This is our ant task:

      <target name="swf" depends="makeDirs, setBuildDebug">
      <condition property="mxmlc.locale" value="en_US">
      <not>
      <isset property="mxmlc.locale"/>
      </not>
      </condition>

      <echo>Building ${build.dir}/${swf.name} from ${src.mxml}</echo>
      <mxmlc
      file="${src.mxml}"
      locale="${mxmlc.locale}"
      debug="${build.debug}"
      headless-server="true"
      output="${build.dir}/${swf.name}"
      actionscript-file-encoding="UTF-8">
      <source-path path-element="${main_shell.dir}/src"/>
      <source-path path-element="${model.dir}/src"/>
      <source-path path-element="${interfaces.dir}/src"/>
      <source-path path-element="${root.dir}/resource_l10n/locale/{locale}"/>
      <source-path path-element="${eula.dir}/src"/>
      <source-path path-element="${component_manager.dir}/src"/>
      <source-path path-element="${wsdl.dir}/src"/>
      <source-path path-element="${bulk_import.dir}/src"/>
      <source-path path-element="${ews.dir}/src"/>
      <source-path path-element="${account_download.dir}/src"/>
      <source-path path-element="${start_page.dir}/src"/>
      <source-path path-element="${nav_tree.dir}/src"/>
      <source-path path-element="${detail_panel.dir}/src"/>
      <source-path path-element="${main_view.dir}/src"/>
      <source-path path-element="${main_app.dir}/src"/>
      <source-path path-element="${east_panel.dir}/src"/>
      <source-path path-element="${controls.dir}/src"/>
      <source-path path-element="${core.dir}/src"/>
      <source-path path-element="${base_component.dir}/src"/>
      <source-path path-element="${front_controller.dir}/src"/>
      <source-path path-element="${global.dir}/src"/>
      <source-path path-element="${orm.dir}/src"/>
      <source-path path-element="${ycmlib.dir}/src"/>
      <source-path path-element="${user_settings.dir}/src"/>
      <source-path path-element="${dock_bar.dir}/src"/>
      <source-path path-element="${keyword_research.dir}/src"/>
      <source-path path-element="${export_bulksheet.dir}/src"/>
      <source-path path-element="${initDB.dir}/src"/>
      <source-path path-element="${datagrid.dir}/src"/>
      <source-path path-element="${settings.dir}/src"/>
      <source-path path-element="${validators.dir}/src"/>
      <source-path path-element="${importcommons.dir}/src"/>
      <source-path path-element="${importkeywords.dir}/src"/>
      <source-path path-element="${importads.dir}/src"/>
      <source-path path-element="${splash_screen.dir}/src"/>
      <source-path path-element="${search_filter.dir}/src"/>
      <source-path path-element="${about.dir}/src"/>
      <source-path path-element="${app_updater.dir}/src"/>
      <source-path path-element="${auth_manager.dir}/src"/>
      <source-path path-element="${account_selection.dir}/src"/>
      <source-path path-element="${installer_badge.dir}/src"/>
      <source-path path-element="${postchange.dir}/src"/>
      <source-path path-element="${resource_bulk.dir}/bulk"/>
      <source-path path-element="${accountstats.dir}/src"/>
      <load-config filename="${FLEX_HOME}/frameworks/air-config.xml"/>
      <compiler.include-libraries dir="${root.bld.dir}" includes="*.swc" append="true"/>
      <compiler.include-libraries dir="${root.lib.dir}" includes="*.swc" append="true"/>
      </mxmlc>
      </target>

      ***********Build failure 1:
      swf:
      [echo] Building /Users/panoff/projects/YSMD/CampaignManager/bld/CampaignManager.swf from /Users/panoff/projects/YSMD/CampaignManager/main_shell/src/com/yahoo/ysm/ycm/mainShell/vi ew/component/CampaignManager.mxml
      [mxmlc] Loading configuration file /Applications/Adobe Flex Builder 3 Plug-in/sdks/3.2.0/frameworks/air-config.xml
      [mxmlc] Warning: Line number support for XML tag attributes is not available. It is possible that compile-time MXML error reporting and component debugging may not give correct line numbers. Please make sure that xercesPatch.jar is in the classpath.
      [mxmlc] 
      [mxmlc] /Users/panoff/projects/YSMD/CampaignManager/model/src/com/yahoo/ysm/ycm/model/DirectLoade r.as(941): col: 52 Error: Parameter initializer unknown or is not a compile-time constant.
      [mxmlc] 
      [mxmlc]             componentType : String = ComponentType.EXISTING
      [mxmlc]                                                    ^
      [mxmlc] 
      [mxmlc] /Users/panoff/projects/YSMD/CampaignManager/model/src/com/yahoo/ysm/ycm/model/DirectLoade r.as(1040): col: 52 Error: Parameter initializer unknown or is not a compile-time constant.
      [mxmlc] 
      [mxmlc]             componentType : String = ComponentType.EXISTING
      [mxmlc]                                                    ^
      [mxmlc] 


      ***********Build failure 2:
      swf:
      [echo] Building /home/yahoo/hudson-ws/workspace/YSMD/trunk/bld/CampaignManager.swf from /home/yahoo/hudson-ws/workspace/YSMD/trunk/main_shell/src/com/yahoo/ysm/ycm/mainShell/vie w/component/CampaignManager.mxml
      [mxmlc] Loading configuration file /home/y/libexec/flex/frameworks/air-config.xml
      [mxmlc] /home/yahoo/hudson-ws/workspace/YSMD/trunk/import_keywords/src/com/yahoo/ysm/ycm/importke ywords/view/component/ImportKeywordsUI.mxml(165): Error: Implicit coercion of a value of type com.yahoo.ysm.ycm.east_panel.datagrid.common.view:BaseDataGrid to an unrelated type Object.
      [mxmlc] 
      [mxmlc]             <basedg:BaseDataGrid
      [mxmlc] 
      [mxmlc] /home/yahoo/hudson-ws/workspace/YSMD/trunk/import_keywords/src/com/yahoo/ysm/ycm/importke ywords/view/component/ImportKeywordsUI.mxml(165): Error: Comparison between a value with static type Object and a possibly unrelated type com.yahoo.ysm.ycm.east_panel.datagrid.common.view:BaseDataGrid.
      [mxmlc] 
      [mxmlc]             <basedg:BaseDataGrid
      [mxmlc] 
      [mxmlc] /home/yahoo/hudson-ws/workspace/YSMD/trunk/import_keywords/src/com/yahoo/ysm/ycm/importke ywords/view/component/ImportKeywordsUI.mxml(165): Error: Implicit coercion of a value of type com.yahoo.ysm.ycm.east_panel.datagrid.common.view:BaseDataGrid to an unrelated type Object.
      [mxmlc] 
      [mxmlc]             <basedg:BaseDataGrid
      [mxmlc] 
      [mxmlc] /home/yahoo/hudson-ws/workspace/YSMD/trunk/main_shell/src/com/yahoo/ysm/ycm/mainShell/vie w/component/assets/css/ycm.css(471): Error: Invalid Embed directive in stylesheet - can't resolve source 'Embed("../tooltipCloseNormal.png")'.
      [mxmlc] 
      [mxmlc]     up-skin: Embed("../tooltipCloseNormal.png");
      [mxmlc] 
      [mxmlc] /home/yahoo/hudson-ws/workspace/YSMD/trunk/main_shell/src/com/yahoo/ysm/ycm/mainShell/vie w/component/assets/css/ycm.css(472): Error: Invalid Embed directive in stylesheet - can't resolve source 'Embed("../tooltipCloseHover.png")'.
      [mxmlc] 
      [mxmlc]     over-skin: Embed("../tooltipCloseHover.png");
      [mxmlc] 
      [mxmlc] /home/yahoo/hudson-ws/workspace/YSMD/trunk/main_shell/src/com/yahoo/ysm/ycm/mainShell/vie w/component/assets/css/ycm.css(473): Error: Invalid Embed directive in stylesheet - can't resolve source 'Embed("../tooltipCloseNormal.png")'.
      [mxmlc] 
      [mxmlc]     disabled-skin: Embed("../tooltipCloseNormal.png");
      [mxmlc] 
      [mxmlc] /home/yahoo/hudson-ws/workspace/YSMD/trunk/main_shell/src/com/yahoo/ysm/ycm/mainShell/vie w/component/assets/css/ycm.css(474): Error: Invalid Embed directive in stylesheet - can't resolve source 'Embed("../tooltipCloseNormal.png")'.
      [mxmlc] 
      [mxmlc]     down-skin: Embed("../tooltipCloseNormal.png");
      [mxmlc] 

      BUILD FAILED

      ***********Build failure 3:
      swf:
      [echo] Building C:\ysmd/bld/CampaignManager.swf from C:\ysmd/main_shell/src
      /com/yahoo/ysm/ycm/mainShell/view/component/CampaignManager.mxml
      [mxmlc] Loading configuration file C:\Program Files\Adobe\Flex Builder 3\sdk
      s\3.2.0\frameworks\air-config.xml
      [mxmlc] C:\ysmd\keyword_research\src\com\yahoo\ysm\ycm\keywordResearch\view\
      component\KeywordResearchUI.mxml(209):  Error: Implicit coercion of a value of t
      ype com.yahoo.ysm.ycm.keywordResearch.view:KeywordResearchDataGrid to an unrelat
      ed type Object.
      [mxmlc]
      [mxmlc]             <krs:KeywordResearchDataGrid
      [mxmlc]
      [mxmlc] C:\ysmd\keyword_research\src\com\yahoo\ysm\ycm\keywordResearch\view\
      component\KeywordResearchUI.mxml(209):  Error: Comparison between a value with s
      tatic type Object and a possibly unrelated type com.yahoo.ysm.ycm.keywordResearc
      h.view:KeywordResearchDataGrid.
      [mxmlc]
      [mxmlc]             <krs:KeywordResearchDataGrid
      [mxmlc]
      [mxmlc] C:\ysmd\keyword_research\src\com\yahoo\ysm\ycm\keywordResearch\view\
      component\KeywordResearchUI.mxml(209):  Error: Implicit coercion of a value of t
      ype com.yahoo.ysm.ycm.keywordResearch.view:KeywordResearchDataGrid to an unrelat
      ed type Object.
      [mxmlc]
      [mxmlc]             <krs:KeywordResearchDataGrid
      [mxmlc]
      [mxmlc] C:\ysmd\main_shell\src\com\yahoo\ysm\ycm\mainShell\view\component\as
      sets\css\ycm.css(593): Error: Invalid Embed directive in stylesheet - can't reso
      lve source 'Embed("../tooltipCloseNormal.png")'.
      [mxmlc]
      [mxmlc]     up-skin: Embed("../tooltipCloseNormal.png");
      [mxmlc]
      [mxmlc] C:\ysmd\main_shell\src\com\yahoo\ysm\ycm\mainShell\view\component\as
      sets\css\ycm.css(594): Error: Invalid Embed directive in stylesheet - can't reso
      lve source 'Embed("../tooltipCloseHover.png")'.
      [mxmlc]
      [mxmlc]     over-skin: Embed("../tooltipCloseHover.png");
      [mxmlc]
      [mxmlc] C:\ysmd\main_shell\src\com\yahoo\ysm\ycm\mainShell\view\component\as
      sets\css\ycm.css(595): Error: Invalid Embed directive in stylesheet - can't reso
      lve source 'Embed("../tooltipCloseNormal.png")'.
      [mxmlc]
      [mxmlc]     disabled-skin: Embed("../tooltipCloseNormal.png");
      [mxmlc]
      [mxmlc] C:\ysmd\main_shell\src\com\yahoo\ysm\ycm\mainShell\view\component\as
      sets\css\ycm.css(596): Error: Invalid Embed directive in stylesheet - can't reso
      lve source 'Embed("../tooltipCloseNormal.png")'.
      [mxmlc]
      [mxmlc]     down-skin: Embed("../tooltipCloseNormal.png");
      [mxmlc]

      BUILD FAILED