Sorry - I'm back again.
I tried 2.0.3 but it wouldn't include the property file under "locales/
en_US" directory. Here is the build section of current POM:
<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.0.3</version>
<extensions>true</extensions>
<configuration>
<compiledLocales>
<locale>en_US</locale>
</compiledLocales>
<mergeResourceBundle>true</mergeResourceBundle>
</configuration>
</plugin>
</plugins>
</build>
The generated swc file contains only my application files which are
put inside "library.swf".
My project directory structure looks like this:
src/main/flex
locales
en_US
CommonComponentsResources.properties
I have a couple of questions:
1. The <sourceDirectory> tag only includes "src/main/flex". Wouldn't I
need to specify "src/main/locales" somewhere since it is not under
"src/main/flex"? Otherwise, how would the plugin know where to find
it? I have tried to add
<resourceBundlePath>
<path>${basedir}/src/main/locales/{locale}</path>
</resourceBundlePath>
inside <configuration> but that caused an error.
2. I know people who have used flex-compiler-mojo to build a SWF file
successfully which contains both application files as well as
localization files, has anyone built a SWC file with success?
3. Where would the localization file
"CommonComponentsResources.properties" be in the SWC, if the build had
worked?
4. If I have one "CommonComponentsResources.properties" file for
en_US, and one with the same name (different content, of course) for
jp_JP, how would the resource manager know which is which, since the
names of the two files are the same?
Thanks a lot for your help!
Sam
On Jan 26, 2:59 pm, Marvin Froeder <[email protected]> wrote:
> Now I remember...
>
> This is a old bug, I guess the first time we detect it was on 2.0M5....
>
> Try 2.0.3.
>
> VELO
>
>
>
> On Mon, Jan 26, 2009 at 5:52 PM, Sam <[email protected]> wrote:
>
> > Here it is:
>
> > Z:\lion\myapp\uiframework\commoncomponents\commoncomponents-ui>mvn
> > install -e
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building Common Component Library
> > [INFO] task-segment: [install]
> > [INFO]
> > ------------------------------------------------------------------------
> > Downloading:
>
> >http://repository.sonatype.org/content/groups/public//com/adobe/flex/...
> > Downloading:
>
> >http://repo_server:8081/artifactory/repo/com/adobe/flex/sdk/datavisua...
> > Downloading:
>
> >http://repo_server:8081/artifactory/repo/com/adobe/flex/sdk/datavisua...
> > [INFO] [flex-compiler-mojo:compile-swc]
> > [INFO] Using configuration file Z:\lion\myapp\uiframework
> > \commoncomponents\commoncomponents-ui\target\config.xml
> > [WARNING] com.adobe.flex.compiler::framework::zip::configs artifact
> > not found. No extra manifests added!
> > [WARNING] Nothing expecified to include. Assuming source folders.
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] File {locale} not found
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > org.apache.maven.BuildFailureException: File {locale} not found
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > (DefaultLifecycleExecutor.java:579)
> > at
>
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > (DefaultLifecycleExecutor.java:499)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > (DefaultLifecycleExecutor.java:478)
> > at
>
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > (DefaultLifecycleExecutor.java:330)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> > (DefaultLifecycleExecutor.java:291)
> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> > (DefaultLifecycleExecutor.java:142)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > 336)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > 129)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at org.codehaus.classworlds.Launcher.launchEnhanced
> > (Launcher.java:315)
> > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > at org.codehaus.classworlds.Launcher.mainWithExitCode
> > (Launcher.java:430)
> > at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by: org.apache.maven.plugin.MojoFailureException: File {locale}
> > not found
> > at info.rvin.mojo.flexmojo.compiler.LibraryMojo.setUp
> > (LibraryMojo.java:300)
> > at info.rvin.mojo.flexmojo.AbstractIrvinMojo.execute
> > (AbstractIrvinMojo.java:157)
> > at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> > (DefaultPluginManager.java:451)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > (DefaultLifecycleExecutor.java:558)
> > ... 16 more
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 12 seconds
> > [INFO] Finished at: Mon Jan 26 14:48:06 EST 2009
> > [INFO] Final Memory: 6M/254M
> > [INFO]
> > ------------------------------------------------------------------------
>
> > Z:\lion\myapp\uiframework\commoncomponents\commoncomponents-ui>
>
> > Thanks for taking the time!
>
> > Sam
>
> > On Jan 26, 2:43 pm, Marvin Froeder <[email protected]> wrote:
> > > Can you send me mvn install -e ?
>
> > > VELO
>
> > > On Mon, Jan 26, 2009 at 5:31 PM, Sam <[email protected]> wrote:
>
> > > > What I included in my email is the entire console output that I got
> > > > when I ran "mvn -install":
>
> > > > Z:\lion\myapp\uiframework\commoncomponents\commoncomponents-ui>mvn
> > > > install
> > > > [INFO] Scanning for projects...
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] Building Common Component Library
> > > > [INFO] task-segment: [install]
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > Downloading:
>
> > > >http://repository.sonatype.org/content/groups/public//com/adobe/flex/.
> > ..
> > > > Downloading:
>
> > > >http://repo_server:8081/artifactory/repo/com/adobe/flex/sdk/datavisua.
> > ..
> > > > Downloading:
>
> > > >http://repo_server:8081/artifactory/repo/com/adobe/flex/sdk/datavisua.
> > ..
> > > > [INFO] [flex-compiler-mojo:compile-swc]
> > > > [INFO] Using configuration file Z:\lion\myapp\uiframework
> > > > \commoncomponents\commoncomponents-ui\target\config.xml
> > > > [WARNING] com.adobe.flex.compiler::framework::zip::configs artifact
> > > > not found. No extra manifests added!
> > > > [WARNING] Nothing expecified to include. Assuming source folders.
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [ERROR] BUILD FAILURE
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] File {locale} not found
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] For more information, run Maven with the -e switch
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] Total time: 12 seconds
> > > > [INFO] Finished at: Mon Jan 26 13:23:27 EST 2009
> > > > [INFO] Final Memory: 6M/254M
> > > > [INFO]
>
> > ------------------------------------------------------------------------
>
> > > > Z:\lion\myapp\uiframework\commoncomponents\commoncomponents-ui>
>
> > > > Thanks,
>
> > > > Sam
>
> > > > On Jan 26, 2:09 pm, Marvin Froeder <[email protected]> wrote:
> > > > > No, flexmojos 2.0.3
>
> > > > > Where did you paste your entire console output?
> > > > > Can you do that if you didn't.
>
> > > > > VELO
>
> > > > > On Mon, Jan 26, 2009 at 5:03 PM, Sam <[email protected]> wrote:
>
> > > > > > Do you mean Maven 2.0.3?
>
> > > > > > On Jan 26, 1:04 pm, RedBugz Software <[email protected]> wrote:
> > > > > > > On Mon, Jan 26, 2009 at 11:00 AM, Sam <[email protected]>
> > wrote:
> > > > > > > > How can I get both the application files and files under
> > "locales"
> > > > > > > > directory in the swc?
>
> > > > > > > The most straightforward would be to update to 2.0.3 and use
> > > > > > > <compiledLocales> instead of the deprecated <locales>.
>
> > > > > > > If you can't update for some reason, I'll have to dig deeper and
> > see
> > > > > > > what's wrong.
>
> > > > > > > Logan- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---