0 Replies Latest reply on Aug 29, 2011 3:24 PM by anurag c

    Ant task cyclic library refrence

    anurag c

      Hello everyone,

       

      I am using flex ant task from my Flash builder to compile application. Its working fine and I am able to get the output. But the problem is whenever I use a library in my main project which is refrencing other library than I am unable to find refrence of components in lib 2. Below is the structure

       

      NewLib >> contains a NewLibGrid(which is a normal spark grid)

       

      MainLib >> ExtPanel which includes NewLibGrid from NewLib .

       

      MainApp >> This uses ExtPanel

       

      No I am getting error during ant compilation

      [compc] D:\Data\Flex\Projects\CompLib\src\ExtPanel.mxml: Error: Could not resolve <local:NewLibGrid> to a component implementation.

       

       

      Here is part of antscript I am using

       

      <target name="lib1" depends="lib2">

      <compc output="${STAGE_DIR}/stagingDir/CompLib.swc"

         keep-generated-actionscript="${DEBUG}"

         debug="${DEBUG}"

         optimize="${OPTIMIZE}"

         target-player="${TARGET_FLASH_PLAYER}"

         include-classes="ExtPanel">

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

      <url rsl-url="framework_${FLEX_VERSION}.swf"/>                                                                                                        

      <url rsl-url="framework_${FLEX_VERSION}.swz"/>                                                                                              

      </runtime-shared-library-path>

      <runtime-shared-library-path path-element="${PROJ_HOME}/NewLib/bin/NewLib.swc">                                                                                              

      <url rsl-url="${PROJ_HOME}/NewLib/bin/NewLib.swf"/>                                                                                                        

      <url rsl-url="${PROJ_HOME}/NewLib/bin/NewLib.swz"/>                                                                                              

      </runtime-shared-library-path>

      <compiler.library-path dir=".." append="true">

      <include name="Common/libraries"/>

      <exclude name="global_library.swc" />

      </compiler.library-path>

      <source-path path-element="../CompLib/src" />

      </compc>

      </target>

      <target name="lib2">

      <compc output="${STAGE_DIR}/stagingDir/NewLib.swc"

         keep-generated-actionscript="${DEBUG}"

         debug="${DEBUG}"

         optimize="${OPTIMIZE}"

         target-player="${TARGET_FLASH_PLAYER}"

         include-classes="NewLibGrid">

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

      <url rsl-url="framework_${FLEX_VERSION}.swf"/>                                                                                                        

      <url rsl-url="framework_${FLEX_VERSION}.swz"/>                                                                                              

      </runtime-shared-library-path>

      <compiler.library-path dir=".." append="true">

      <include name="Common/libraries"/>

      <exclude name="global_library.swc" />

      </compiler.library-path>

      <source-path path-element="../NewLib/src" />

      </compc>

      </target>