0 Replies Latest reply on Feb 16, 2010 2:11 PM by 1ndivisible

    COMPC inclusion of unused libraries

    1ndivisible Level 1



      I'm using ANT w/ FlexTasks to build an application. In the project is a third-party/libs folder containing various swcs. Some of the swcs are referenced in the project, some are not. One of the swcs which is not used anywhere in the project is FlexUnit4.swc.


      When I compile my project, I am including third-party/libs folder using:


      <!-- Include Third Party libs -->
           <include name="**/*.swc" />


      I decompiled the published application and found that all of the FlexUnit classes were included, pushing up the file-size considerably. Any other libraries I place in that folder are compiled into the application in their entirity. All the classes they contain.


      How can I ensure that only classes referenced in the application (or their dependencies) are included?