2 Replies Latest reply on Jun 29, 2011 12:44 PM by VeenaChezhian

    MXMLC ANT task not including AIR libraries

    VeenaChezhian

      Hi Guys,

       

      This is the MXMLC ant task which I am using the compile my test app. If i set the static-link-runtime-shared-libraries="true" , the AIR libraries gets merged into my output swf. But when this attribute is set to false, I dont see the AIR libraries added to my SWF file. As a result when I run the AIR version fo my project, I dont see the application launch right. I have so many RSL in my project and I wanted to have static-link-runtime-shared-libraries="false". Is there a way to have AIR libraries include in my output file and still have this static-link-runtime-shared-libraries="false".

       

      <mxmlc

          file="${project.name}/src/Test.mxml"

          output="${build.mxmlc.dir}/Test.swf"

          static-link-runtime-shared-libraries="true"

          >

         

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

       

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

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

       

          <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">

                      <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>

                      <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>

          </runtime-shared-library-path>

       

          <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">

                      <url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>

          </runtime-shared-library-path>

       

         </mxmlc>

       

       

       

      My RSL are compiled using COMPC task and the AIR libraries are included into them using the below attributes of compc task.

       

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

      <source-path path-element="${flex.frameworks.dir}/projects/airframework/src" />

      <source-path path-element="${flex.frameworks.dir}/projects/air/ServiceMonitor/src" />

      I am really stuck with this problem and not able to get my release build launch right. Again, any light on this problem will be of great help.!

        • 1. Re: MXMLC ANT task not including AIR libraries
          VeenaChezhian Level 1

              <mxmlc

                   file="${project.name}/src/Test.mxml"

                   output="${build.mxmlc.dir}/Test.swf"

                   static-link-runtime-shared-libraries="true"

              >

             

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

           

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

           

                   <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">

                          <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>

                          <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>

                   </runtime-shared-library-path>

           

                   <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">

                          <url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>

                   </runtime-shared-library-path>

           

              </mxmlc>

           

          This also seems to work. AIR libraries are included in my output SWF. It all happens right when I have static-link-runtime-shared-libraries="true" . Why? Why does that not work when i have static-link-runtime-shared-libraries="false"  ??

          • 2. Re: MXMLC ANT task not including AIR libraries
            VeenaChezhian Level 1

            BTW, I am on Flex 3.2 SDK