I typically keep all of my image assets in a folder called src/main/ resources/assets for library projects. In a library where I was electing to embed every image, I noticed that my SWC size was a bit bloated. I checked the artifact size from FlashBuilder and the artifact produced by FlexMojos and the difference between the two was roughly the size of all my images located under src/main/resources/ assets. After checking out the contents of the SWC, I noticed that the entire contents of src/main/resources folder was included in the SWC. I did not notice any compiler directives for "include-file" during the compile-swc execution, so I'm guessing this is a behavior in FlexMojos. Please note, if I moved the assets folder into src/main/ flex, everything compiled correctly, and my SWC size matched the artifact size from FlashBuilder.
Since FM discourages us from using multiple source-paths as we would if using the compiler directly, where should we be putting resources that we want to embed into the SWC but not also include in the bundle? Is there a way to disable the inclusion behavior for src/main/ resources but still have it available on the main classpath for compilation? I noticed that enableMavenResolver config option, but that seemed to just make src/main/resources available on the main CP during compilation; does it also control file inclusion in the bundle? I'm running FM 3.6.1 with Flex 4 final. Any insight is appreciated. -Brian -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
