Yeah, it does make sense, but I don't know if there is an easy way to tell antrun to take dependencies from flexmojos. I never do ant nor antrun so I have little/no helpful knowledge.
FWIW, the fix I suggested is almost done on flexmojos 4, just need some testing. VELO On Mon, Jun 7, 2010 at 8:27 AM, Matt C <[email protected]> wrote: > I'm trying to compile a resource bundle for a given locale. > > See here: > > http://groups.google.com/group/flex-mojos/browse_thread/thread/b65e3a9993c8f683 > > The solution I have looks like this in my pom.xml: > > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <id>compile-resource-bundle_${parent.artifactId}</ > id> > <phase>compile</phase> > <configuration> > <tasks name="Compile the ${parent.artifactId} > resource bundle"> > <taskdef name="for" > classname="net.sf.antcontrib.logic.ForTask" /> > <for list="en_GB,fr_FR,es,ES,de_DE" > param="locale"> > <sequential> > <exec > dir="C:/Program Files/Adobe/Adobe > Flash Builder 4/sdks/4.0.0/bin/" > executable="mxmlc.exe" > failonerror="true" > > > <arg line=" > -locale @{locale} > -include-resource-bundles > resources > -source-path ${basedir}/src/main/ > locales/@{locale} > -output ${basedir}/target/locales/$ > {artifacti...@{locale}.swf > " /> > </exec> > <exec > dir="C:/dev/tools/apache- > maven-2.2.1/bin/" > executable="mvn.bat" > failonerror="true" > > > <arg line=" > install:install-file > -Dfile=${basedir}/target/locales/$ > {artifacti...@{locale}.swf > -DgroupId=${groupId} > -DartifactId=${artifactId} > -Dversion=${version} > -Dpackaging=swf > -dclassifi...@{locale} > " /> > </exec> > </sequential> > </for> > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > > > Pseudo-code: > begin maven-ant-plugin > for each locale > compile the resource bundle for locale (currently using > MXMLC.EXE) > install the compiled bundle into the local maven repo (currently > calling MVN.BAT) > endfor > end maven-ant-plugin > > I know, it's nasty - but it works... :-) > > However: > 1 - I don't want to have to specify the directory location of the > MXMLC.EXE binary > 2 - would much prefer to use the same compiler as all the other code > uses (ie, whatever FlexMojos uses). > > Make sense? > > Matt > > > On Jun 7, 12:16 pm, Marvin Froeder <[email protected]> wrote: > > What are you trying to accomplish??? > > > > Sent from DROID > > > > Em 07/06/2010 08:10, "Matt C" <[email protected]>escreveu: > > > > I think I'm missing something here. > > > > What does FlexMojos use to compile the code with? > > > > And can I use the same thing? > > > > Matt > > > > On Jun 7, 12:08 pm, Marvin Froeder <[email protected]> wrote: > > > > > Maven local repository. But there ... > > > Em 07/06/2010 08:03, "Matt C" <[email protected]>escreveu: > > > > > Ok, so where does it get its compiler from? > > > > > And can I access it too from within maven? > > -- > 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]<flex-mojos%[email protected]> > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- 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/
