3 Replies Latest reply on Dec 3, 2010 1:17 PM by matthew horn

    Issues using multiple load-config files with ant




      Not sure if this is the correct place...


      I am creating an ant build script to compile our flex application. I am trying to use the default flex-config by doing <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/> and project specific config file add the datavisualization module and any other libraries we might need in the future. I am trying to do this as I don't want to modify the flex-config.xml


      The issue I keep running into is I get a compiler error saying "unable to locate specified base class 'spark.comonents.application..". if I place the custome load-config file above the adobe default flex-config it gives errors stating it the "SeriesSlide" type


      <mxmlc file="${project.sourcePath}/FBApp.mxml"








               <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/>

               <load-config filename="C:/Hudson/.hudson/jobs/FB 2.0 Flex/workspace/FBApp/FB-config.xml"/>

               <source-path path-element="${flex.sdkPath}/frameworks/libs"/>

               <source-path path-element="${project.sourcePath}"/>


               <library-path dir="${flex.path}/sdks/${flex.sdkVersion}/frameworks/locale/en_US"


               <library-path dir="${project.libraryPath}"



               <keep-as3-metadata name="Protected"/>




      the following is my FB-config.xml


      <?xml version="1.0"?>



      <path-element>C:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in\sdks\4.1.0\frameworks\libs/datavisualization.swc</path-element>







      It seems to be that the first "load-config" ant runs into is the only one that gets used. When looking around the internet I have multiple cases of where people say they have successfully used multiple load-config files.
      This one in particular.
      If I had to guess on what was wrong I believe my FB-config.xml file is incorrect but I can't find an example of anyones custom configuration file.
      Any guidance would be apprecaited.