3 Replies Latest reply on Jan 20, 2010 6:00 PM by supdun421

    Ant Build - Problems building - Getting errors referencing spark classes

    supdun421

      Hey, I've been working on this for most of the day. I finally was able to get rid of a bunch of errors, but now I am stuck on the following after attempting an ANT Build:

       

          [mxmlc] Loading configuration file /Applications/Adobe Flash Builder Plug-in Beta 2/sdks/4.0.0/frameworks/flex-config.xml
          [mxmlc] _mx_controls_ButtonStyle.as(42): col: 54 Error: Access of undefined property DefaultButtonSkin.
          [mxmlc]                 this.emphasizedSkin = mx.skins.spark.DefaultButtonSkin;
          [mxmlc]                                                      ^
          [mxmlc] _mx_controls_ButtonStyle.as(45): col: 44 Error: Access of undefined property ButtonSkin.
          [mxmlc]                 this.skin = mx.skins.spark.ButtonSkin;
          [mxmlc]                                            ^
          [mxmlc] _mx_controls_ButtonStyle.as(11): col: 22 Error: Definition mx.skins.spark:DefaultButtonSkin could not be found.
          [mxmlc] import mx.skins.spark.DefaultButtonSkin;
          [mxmlc]                      ^
          [mxmlc] _mx_controls_ButtonStyle.as(12): col: 22 Error: Definition mx.skins.spark:ButtonSkin could not be found.
          [mxmlc] import mx.skins.spark.ButtonSkin;
          [mxmlc]                      ^
          [mxmlc] _mx_core_ContainerStyle.as(40): col: 50 Error: Access of undefined property ContainerBorderSkin.
          [mxmlc]                 this.borderSkin = mx.skins.spark.ContainerBorderSkin;
          [mxmlc]                                                  ^
          [mxmlc] _mx_core_ContainerStyle.as(11): col: 22 Error: Definition mx.skins.spark:ContainerBorderSkin could not be found.
          [mxmlc] import mx.skins.spark.ContainerBorderSkin;
          [mxmlc]                      ^
          [mxmlc] _mx_containers_PanelStyle.as(57): col: 50 Error: Access of undefined property PanelBorderSkin.
          [mxmlc]                 this.borderSkin = mx.skins.spark.PanelBorderSkin;
          [mxmlc]                                                  ^
          [mxmlc] _mx_containers_PanelStyle.as(11): col: 22 Error: Definition mx.skins.spark:PanelBorderSkin could not be found.
          [mxmlc] import mx.skins.spark.PanelBorderSkin;
          [mxmlc]                      ^
          [mxmlc] _mx_controls_scrollClasses_ScrollBarStyle.as(46): col: 49 Error: Access of undefined property ScrollBarTrackSkin.
          [mxmlc]                 this.trackSkin = mx.skins.spark.ScrollBarTrackSkin;
          [mxmlc]                                                 ^
          [mxmlc] _mx_controls_scrollClasses_ScrollBarStyle.as(47): col: 53 Error: Access of undefined property ScrollBarDownButtonSkin.
          [mxmlc]                 this.downArrowSkin = mx.skins.spark.ScrollBarDownButtonSkin;
          [mxmlc]                                                     ^
          [mxmlc] _mx_controls_scrollClasses_ScrollBarStyle.as(48): col: 51 Error: Access of undefined property ScrollBarUpButtonSkin.
          [mxmlc]                 this.upArrowSkin = mx.skins.spark.ScrollBarUpButtonSkin;
          [mxmlc]                                                   ^
          [mxmlc] _mx_controls_scrollClasses_ScrollBarStyle.as(51): col: 49 Error: Access of undefined property ScrollBarThumbSkin.
          [mxmlc]                 this.thumbSkin = mx.skins.spark.ScrollBarThumbSkin;
          [mxmlc]                                                 ^
          [mxmlc] _mx_controls_scrollClasses_ScrollBarStyle.as(11): col: 22 Error: Definition mx.skins.spark:ScrollBarThumbSkin could not be found.
          [mxmlc] import mx.skins.spark.ScrollBarThumbSkin;
          [mxmlc]                      ^
          [mxmlc] _mx_controls_scrollClasses_ScrollBarStyle.as(12): col: 22 Error: Definition mx.skins.spark:ScrollBarDownButtonSkin could not be found.
          [mxmlc] import mx.skins.spark.ScrollBarDownButtonSkin;
          [mxmlc]                      ^
          [mxmlc] _mx_controls_scrollClasses_ScrollBarStyle.as(13): col: 22 Error: Definition mx.skins.spark:ScrollBarUpButtonSkin could not be found.
          [mxmlc] import mx.skins.spark.ScrollBarUpButtonSkin;
          [mxmlc]                      ^
          [mxmlc] _mx_controls_scrollClasses_ScrollBarStyle.as(14): col: 22 Error: Definition mx.skins.spark:ScrollBarTrackSkin could not be found.
          [mxmlc] import mx.skins.spark.ScrollBarTrackSkin;
          [mxmlc]                      ^
          [mxmlc] _globalStyle.as(142): col: 50 Error: Access of undefined property BorderSkin.
          [mxmlc]                 this.borderSkin = mx.skins.spark.BorderSkin;
          [mxmlc]                                                  ^
          [mxmlc] _globalStyle.as(11): col: 22 Error: Definition mx.skins.spark:BorderSkin could not be found.
          [mxmlc] import mx.skins.spark.BorderSkin;
          [mxmlc]                      ^
      
      BUILD FAILED
      
      

        • 1. Re: Ant Build - Problems building - Getting errors referencing spark classes
          Flex harUI Adobe Employee

          Looks like sparkskins.swc is not in the libpath with the other swcs

          • 2. Re: Ant Build - Problems building - Getting errors referencing spark classes
            supdun421 Level 1

            Yeah,

             

            The error seems to away when I add the library path to frameworks/libs.

             

            Although, when I add the path, I do get errors associating my Cairngorm and other swcs. The weird thing is, I am adding them below.

             

             

            Below is the task I created. Below that is the error I'm getting based on the following task:

             

             

             

            <target name="flex.compile" description="compiles your flex app">
                    <mxmlc 
                           file="arnold.mxml"
                           output="${build.dir}/main.swf"
                           >
                         
                         <metadata>
                            <creator>Anthony Cintron</creator>
                            <publisher>Fake-Up, LLC.</publisher>
                         </metadata>
            
                         <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                          <!--<source-path path-element="${FLEX_HOME}/frameworks"/> -->             
                           <!--<source-path path-element="${build.dir}"/>-->
                          
                         <!-- official apps lib directory -->
                           <compiler.library-path  dir="${lib.dir}" >
                                <include name="Cairngorm.swc" />
                           </compiler.library-path>
                         
                         <!-- other assets that are swcs. -->
                         <compiler.library-path  dir="fla/swfs_and_swcs" >
                              <include name="*.swc" />
                        </compiler.library-path>
                         <!-- GET SPARK SKINS -->
                         <compiler.library-path  dir="${FLEX_HOME}/frameworks/*.swc" />
                    </mxmlc>
                 </target>
            
            

             

             

             

             

             

              [mxmlc] Loading configuration file /Applications/Adobe Flash Builder Plug-in Beta 2/sdks/4.0.0/frameworks/flex-config.xml
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/controller/events/FaqDataEvent.as(8): col: 36 Error: The definition of base class CairngormEvent was not found.
                [mxmlc]      public class FaqDataEvent extends CairngormEvent
                [mxmlc]                                        ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/controller/events/PackageDataEvent.as(10): col: 40 Error: The definition of base class CairngormEvent was not found.
                [mxmlc]      public class PackageDataEvent extends CairngormEvent
                [mxmlc]                                            ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/controller/events/InterestDataEvent.as(5): col: 41 Error: The definition of base class CairngormEvent was not found.
                [mxmlc]      public class InterestDataEvent extends CairngormEvent
                [mxmlc]                                             ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/controller/events/NewsDataEvent.as(8): col: 37 Error: The definition of base class CairngormEvent was not found.
                [mxmlc]      public class NewsDataEvent extends CairngormEvent
                [mxmlc]                                         ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/controller/events/ParkDataEvent.as(11): col: 37 Error: The definition of base class CairngormEvent was not found.
                [mxmlc]      public class ParkDataEvent extends CairngormEvent
                [mxmlc]                                         ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/events/AmtrakStateChangeEvent.as(7): col: 46 Error: The definition of base class CairngormEvent was not found.
                [mxmlc]      public class AmtrakStateChangeEvent extends CairngormEvent
                [mxmlc]                                                  ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/events/AmtrakStateChangeEvent.as(32): col: 28 Error: Method marked override must override another method.
                [mxmlc]           override public function clone() : Event
                [mxmlc]                                    ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/business/Services.mxml: Error: Unable to locate specified base class 'com.adobe.cairngorm.business.ServiceLocator' for component class 'com.amtrak.business.Services'.
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/controller/AppController.as(15): col: 37 Error: The definition of base class FrontController was not found.
                [mxmlc]      public class AppController extends FrontController
                [mxmlc]                                         ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/components/map/events/HouseEvent.as(12): col: 34 Error: The definition of base class CairngormEvent was not found.
                [mxmlc]      public class HouseEvent extends CairngormEvent
                [mxmlc]                                      ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/components/map/events/HouseEvent.as(34): col: 28 Error: Method marked override must override another method.
                [mxmlc]           override public function clone() : Event{
                [mxmlc]                                    ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/model/AppModel.as(12): col: 35 Error: Interface ModelLocator was not found.
                [mxmlc]      public class AppModel implements ModelLocator
                [mxmlc]                                       ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/components/parks/events/ParkSelectEvent.as(8): col: 39 Error: The definition of base class CairngormEvent was not found.
                [mxmlc]      public class ParkSelectEvent extends CairngormEvent
                [mxmlc]                                           ^
                [mxmlc] /Users/anthonycintron/Documents/FlexProject/work/arnold_amtrak/src/com/amtrak/components/parks/events/ParkSelectEvent.as(20): col: 28 Error: Method marked override must override another method.
                [mxmlc]           override public function clone():Event{
                [mxmlc]                                    ^
            
            
            • 3. Re: Ant Build - Problems building - Getting errors referencing spark classes
              supdun421 Level 1

              My problem was I didn't set <compiler.library-path> append=true. It works great now. See below:

               

              <target name="compile">
                       <mxmlc file="main.mxml">
                             <metadata>
                                     <creator>Anthony Cintron</creator>
                                     <publisher>Fake-Up, LLC.</publisher>
                                  </metadata>
                             <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
                             <source-path path-element="${FLEX_HOME}/frameworks" />
                             <compiler.library-path dir="${lib.dir}" append="true">
                                   <include name="Cairngorm.swc" />
                             </compiler.library-path>
                            <compiler.library-path dir="${SWFS_AND_SWCS}" append="true">
                                 <include name="*.swc" />
                            </compiler.library-path>
                       </mxmlc>
                     </target>