0 Replies Latest reply on Jun 27, 2011 2:32 PM by VeenaChezhian

    Library Projects compiled using Flash Builder and ANT have different outputs

    VeenaChezhian Level 1

      Hi Guys.,

      I am really having hard time to get something work right with RSL projects in Flex 3.2 SDK. Here is my weird problem.

       

      I have a library projects which has the following settings in Flash Builder

       

      Link Type : External

      airglobal.swc

      framework.swc

      datavisualization.swc

      rpc.swc

      utilites.swc

      applicationupdater.swc

      applicationupdater_ui.swc

       

      Link Type: Merged into code

      airframework.swc

      servicemonitor.swc

       

      Compiler settings

      -directory=true -output=../../lib/core -debug=true -optimize=false -define+=CONFIG::bindingdebug,false -define+=CONFIG::frameworkdebug,false -define+=CONFIG::flexspy,true -define+=CONFIG::debug,true -define+=CONFIG::release,false -define+=CONFIG::logtoconsole,false -allow-source-path-overlap=true  -keep-as3-metadata+=Metadata,DefaultProperty,Required,Event,AssignableTo,Inject,InjectCon structor,Publish,Subscribe,PublishSubscribe,Factory,Init,Destroy,Observe,AsyncInit,Managed Events,MessageDispatcher,MessageHandler,MessageBinding,MessageInterceptor,MessageError,Com mand,CommandComplete,CommandResult,CommandError,CommandStatus,ResourceBinding,Selector,Tar get,Autoremove,Internal,ObjectDefinition,DynamicObject

       

      When I compile my library projects I get a MyLibraryproject.swc. The SWC has the following files in it

       

      mx/controls/HTML.png

      mx/core/Windows.png

      library.swf

       

      Note: airframework.swc and servicemonitor.swc has a many png files and properties files in it. But these properties and png files are not included when compiled in Flash builder.

       

      But when the same project is compiled using ANT compc task, i get all the png and properties files from airframework.swc and servicemonitor.swc files into my library project SWC file.

       

      Here is the ANT version which is used to compile the library project

       

      <compc output="${project.output.dir}/${project.name}.swc"

         include-classes="${as} ${mxml}"

         use-network="false"

         directory="false"

         allow-source-path-overlap="true"

         incremental="${build.incremental}"

         debug="${build.debug}"

         locale="${build.locale}"

         optimize="false"

         >

      <define name="CONFIG::bindingdebug" value="${build.bindingdebug}" />

      <define name="CONFIG::logtoconsole" value="${build.logtoconsole}" />

      <define name="CONFIG::frameworkdebug" value="${build.frameworkdebug}" />

      <define name="CONFIG::flexspy" value="${build.flexspy}" />

      <define name="CONFIG::debug" value="${build.debug}" />

      <define name="CONFIG::release" value="${build.release}" />

       

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

       

      <load-config filename="${air.config}"/>

       

      <compiler.include-libraries dir="${flex.frameworks.dir}/libs/air" append="true">

           <include name="servicemonitor.swc" />

           <include name="airframework.swc" />

      </compiler.include-libraries>

       

      <external-library-path dir="${build.compc.dir}" append="true">

           <include name="TriGeoFlexFramework/TriGeoFlexFramework.swc" />

           <include name="TriGeoLibrary/TriGeoLibrary.swc" />

           <include name="TriGeoRPCFramework/TriGeoRPCFramework.swc" />

           <include name="Degrafa_Beta3.1_Flex3" />

           <include name="parsley-flex3-2.4.0.swc" />

           <include name="spicelib-flex-2.4.0.swc" />

      </external-library-path>

       

       

      <external-library-path dir="${flex.frameworks.dir}/libs" append="true">

           <include name="framework.swc" />

           <include name="datavisualization.swc" />

           <include name="utilities.swc" />

           <include name="rpc.swc" />

           <include name="air/airglobal.swc" />

           <include name="air/applicationupdater.swc" />

           <include name="air/applicationupdater_ui.swc" />

      </external-library-path>

       

      <source-path path-element="${basedir}/src" />

      </compc>
      </target>
      </project>
      Any insights is greatly appreciated.!