随笔 - 175  文章 - 202  trackbacks - 0
<2011年3月>
272812345
6789101112
13141516171819
20212223242526
272829303112
3456789

第一个Blog,记录哈哈的生活

常用链接

留言簿(16)

随笔分类

随笔档案

文章分类

文章档案

收藏夹

Java links

搜索

  •  

最新评论

阅读排行榜

评论排行榜

目标:
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 哈哈的日子 阅读(255) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: