`

flexmojos build languageBundle

 
阅读更多

<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/$
{artifactId}_@{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/$
{artifactId}_@{locale}.swf
-DgroupId=${groupId}
-DartifactId=${artifactId}
-Dversion=${version}
-Dpackaging=swf
-Dclassifier=@{locale}
" />
</exec>
</sequential>
</for>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics