Maven下Flex国际化配置
生活随笔
收集整理的這篇文章主要介紹了
Maven下Flex国际化配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?????? 之前寫了flashbulid、initellij下的flex國際化配置,它們都是在本地打包發布的,那么我們的工程用maven管理了,需要自動發布。這時候如何修改flex的pom文件,來讓它build的時候支持國際化呢?
?????? 同理,我們需要在Maven build flex的插件配置標簽里配置國際化支持,看代碼:
<build><finalName>FlexI18nTest</finalName><sourceDirectory>src</sourceDirectory><outputDirectory>./out</outputDirectory><plugins><plugin><groupId>org.sonatype.flexmojos</groupId><artifactId>flexmojos-maven-plugin</artifactId><version>${flexmojos.version}</version><extensions>true</extensions><configuration><sourceFile>FlexI18nTest.mxml</sourceFile><outputDirectory>./out</outputDirectory><localesSourcePath>${basedir}/locale/{locale}</localesSourcePath><localesCompiled><locale>en_US</locale><locale>zh_CN</locale></localesCompiled><policyFileUrls><!--- cross domain policy for each RSL entry --><url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url><url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url><url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url></policyFileUrls><rslUrls><url>http://fpdownload.adobe.com/pub/{extension}/flex/${flex.sdk.version}/{artifactId}_{version}.{extension}</url><url>http://fpdownload.adobe.com/pub/{extension}/tlf/${flex.tlf.version}/{artifactId}_${flex.tlf.version}.{extension}</url><url>http://fpdownload.adobe.com/pub/{extension}/flex/${flex.sdk.version}/{artifactId}_${flex.osmf.version}.{extension}</url></rslUrls><debug>true</debug><swfVersion>11</swfVersion><targetPlayer>10.2</targetPlayer><storepass/><optimize>true</optimize><showWarnings>true</showWarnings><allowSourcePathOverlap>true</allowSourcePathOverlap></configuration></plugin></plugins></build>?Flexmojos 版本號:4.0-RC2
Maven版本號:4.0.0
我添加了兩種語言支持 ,中文和英文。
<localesSourcePath> ${basedir}/locale/{locale} </localesSourcePath>
<localesCompiled> <locale>en_US</locale> <locale>zh_CN</locale> </localesCompiled>
?
?
?
轉載于:https://www.cnblogs.com/yangpigao/p/3256723.html
總結
以上是生活随笔為你收集整理的Maven下Flex国际化配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 程序员选择字体的标准是
- 下一篇: freemarker配置