目標:
copy 國際化資源文件,*.properties 至 *_en_US.properties,但有一些不是國際化資源的配置文件被誤 copy 了,國際化資源的判斷標準是同時還有一個 *_zh_CN.properties 文件
<target>
<pathconvert property="x" pathsep="," targetos="unix">
<path>
<fileset dir="src/main/resources" includes="**/*_zh_CN.properties" />
</path>
<mapper type="regexp" from=".*?src/main/resources/(.*?)_zh_CN.properties$" to="\1.properties" />
</pathconvert>
<copy todir="${project.build.outputDirectory}">
<fileset dir="src/main/resources" includes="${x}" />
<mapper type="regexp" from="^(.*?).properties$" to="\1_en_US.properties" />
</copy>
</target>
posted on 2011-03-10 19:31
哈哈的日子 閱讀(269)
評論(0) 編輯 收藏