You are overwriting flex-mojos default sourcePaths.  So, this behavior is
the expected.

1 - remove sourcePaths declaration.
2 - remove includeResourceBundles declaration
3 - define mergeResourceBundle (
http://docs.flex-mojos.info/flex-compiler-mojo/compile-swf-mojo.html#mergeResourceBundle
)


VELO

On Mon, Jan 26, 2009 at 4:00 PM, Sam <[email protected]> wrote:

>
> Hi,
>
> I need help on building a swc using the flex-compiler-mojo plug-in. In
> the POM file below, if I don't include
>
> <sourcePaths>
> <path>${basedir}/src/main/locales/{locale}</path>
> </sourcePaths>
> <includeResourceBundles>
> <bundle>CommonComponentsResources</bundle>
> </includeResourceBundles>
>
> I get a swc file containing a library.swf file that has all my
> application files (acton script files, mxml files), but it contains no
> resource files under ${basedir}/src/main/locales/{locale}.
>
> On the other hand, if I include the above tags (i.e., <sourcePaths>
> and <includeResourceBundles>), the swc file contains files under $
> {basedir}/src/main/locales/{locale}, but my application files would
> not in in library.swf file.
>
> How can I get both the application files and files under "locales"
> directory in the swc?
>
> -------------- POM file ----------------
> ...
> <packaging>swc</packaging>
> ...
>
> <build>
> <finalName>commoncomponents</finalName>
> <sourceDirectory>src/main/flex/</sourceDirectory>
> <outputDirectory>target/</outputDirectory>
> <plugins>
> <plugin>
> <groupId>info.flex-mojos</groupId>
> <artifactId>flex-compiler-mojo</artifactId>
> <version>2.0M6</version>
> <extensions>true</extensions>
> <configuration>
> <locales>
> <locale>en_US</locale>
> </locales>
> <sourcePaths>
> <path>${basedir}/src/main/locales/{locale}</path>
> </sourcePaths>
> <includeResourceBundles>
> <bundle>CommonComponentsResources</bundle>
> </includeResourceBundles>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> ...
>
> -----------------------------
>
> I do have all the dependencies in my POM file and I don't get any
> compilation errors.
>
> Thanks,
>
> Sam
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to