Skip to content

Instantly share code, notes, and snippets.

@fitzyyf
Created November 13, 2012 09:17
Show Gist options
  • Save fitzyyf/4064801 to your computer and use it in GitHub Desktop.
Save fitzyyf/4064801 to your computer and use it in GitHub Desktop.
Maven Flexmojos compile locales
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<directory>target</directory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-RC2</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>wrapper</goal>
</goals>
<configuration>
<parameters>
<swf>${build.finalName}</swf>
<width>100%</width>
<height>100%</height>
</parameters>
</configuration>
</execution>
</executions>
<configuration>
<!--指定flash player版本 最低10.0.0-->
<targetPlayer>10.0.0</targetPlayer>
<!--密钥 留空-->
<storepass/>
<!--compiler.locale-->
<localesRuntime>
<locale>zh_CN</locale>
</localesRuntime>
<localesCompiled>
<locale>zh_CN</locale>
</localesCompiled>
<localesSourcePath>${basedir}/src/main/resources/locale/{locale}</localesSourcePath>
<includeResourceBundles>
<bundle>FlexPaper</bundle>
</includeResourceBundles>
<!--对 swf 进行后期优化, 默认true-->
<optimize>true</optimize>
<!--以增量方式编译,默认false-->
<incremental>false</incremental>
<!--编译时显示 warning,默认true -->
<showWarnings>true</showWarnings>
<!-- 严谨编译,默认true-->
<strict>true</strict>
<!--swf 可连接 network-->
<useNetwork>false</useNetwork>
<sourceFile>Main.mxml</sourceFile>
<!--html wrapper 文件名称-->
<htmlName>Main</htmlName>
</configuration>
</plugin>
</plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment