0 Replies Latest reply on Oct 6, 2010 12:33 PM by flairjax

    Compling a swc with ANT?

    flairjax Level 1

      I am trying to compile a SWC file from a flex project I have, but I also need to include another swc in this file.  So "mySWC" will need to contain "datavisualization.swc".  When I try to use compc I am getting "Error: Could not resolve <mx:AdvancedDataGrid> to a component implementation."

       

      FYI - I am using Flex 4.1.

       

      Here is where I am trying to include the datavisualization swc in build.xml file.

       

       

      <target name="compile" description="-- Compiles project code to binary">

       

              <echo message="Compiling ${ant.project.name}"/>

       

              <echo message="looking for data vis stuff ${lib.dir}"/>

       

              <compc  dir="${basedir}"

       

                      output="${dist.dir}/${swcFile}"

       

                      fork="true"

       

                      actionscript-file-encoding="UTF-8"

       

                      keep-generated-actionscript="false"

       

                      show-binding-warnings="true"

       

                      show-actionscript-warnings="true"

       

                      incremental="false"

       

                      locale="en_US"

       

                      >

       

                      <jvmarg value="-Xmx128M"/>

       

                      <jvmarg value="-Xms128M" />

       

              <compiler.include-libraries append="true" dir="C:/Adobe/AdobeFlashBuilder4Plugin/sdks/4.1.0/frameworks/libs/">


                       <include name="datavisualization.swc"/>
                      </compiler.include-libraries>

       

              <compiler.include-libraries append="true" dir="C:/Adobe/AdobeFlashBuilder4Plugin/sdks/4.1.0/frameworks/locale/en_US/">
                          <include name="datavisualization_rb.swc"/>
                      </compiler.include-libraries>

       


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

       

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

                      <define name="Config::Debug" value="${config.debug}"/>
              </compc>
              <echo message="We are after dv calls"/>
              <antcall target="extractRSL"    inheritall="true"/>
              <antcall target="optimizeRSL"   inheritall="true"/>
              <antcall target="reCalcDigest"  inheritall="true"/>
          </target>

       

      I am not sure why it cannot find the AdvancedDataGrid?