"I've read about maybe needing to use "-include-file" but does that mean we need to manually create the compile line to include every resource and there resource bundle file itself?"
It's not quite as bad as that (though to be honest, compc needs to be made a lot more user friendly, not everyone uses Flex builder!) You can get away with compiling everything in a directory, so you just need to be careful what you include, here's an example of what we use. The mappers creates the list of files, which then gets fed into the compc task. Hope this helps. *Prays someone doesn't see a bug in it!* <target name="rsl-common-ui"> <copy todir="${build.temp.dir}/foo/bar/common/ui"> <fileset dir="${project.actionscript.src.dir}/foo/bar/common/ui"/> </copy> <copy todir="${build.temp.dir}/assets"> <fileset dir="${project.actionscript.src.dir}/foo/bar/assets"/> </copy> <fileset id="sources" dir="${build.temp.dir}"> <include name="**/*.mxml"/> <include name="**/*.as"/> </fileset> <pathconvert property="classes" pathsep=" " refid="sources"> <compositemapper> <chainedmapper> <globmapper from="${build.temp.dir}/*" to="*" handledirsep="true" /> <mapper type="package" from="*.as" to="*"/> </chainedmapper> <chainedmapper> <globmapper from="${build.temp.dir}/*" to="*" handledirsep="true" /> <mapper type="package" from="*.mxml" to="*"/> </chainedmapper> </compositemapper> </pathconvert> <echo message="classes is set to = ${classes}"/> <compc output="../../../lib/common-ui.swc" include-classes="${classes}" directory="false" > <source-path path-element="${build.temp.dir}" /> </compc> <delete dir="${build.temp.dir}" /> </target> Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk <blocked::http://www.inps.co.uk/> The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nhflexer Sent: 14 November 2007 18:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Resources included in SWC library We are trying to create a SWC library that includes a resource bundle and related resources. This library is then used by other parts of our UI as base components. We created a FlexBuilder library project and when we build there everything is fine. When we try to build using compc in Ant it seems that the resource bundle and related resources (images) are not included. How do we get those resources included when using compc (either as an "exec" or using the ant tasks)? I've read about maybe needing to use "-include-file" but does that mean we need to manually create the compile line to include every resource and there resource bundle file itself? Say it isn't so!