ant 将中文的资源文件转为ascii

<?xml version="1.0"?>


<project name="Learning Hibernate" default="convertZhPro" basedir=".">

 

 <!-- 将中文的资源文件转为ascii -->
 <property name="source.root" value="src/resource" />


 <target name="convertZhPro">


  <native2ascii encoding="UTF-8" src="${source.root}" dest="${source.root}" includes="**/*_ch_CN.propertie" ext=".properties " />


 </target>


</project>

 

  Attribute   Description   Required:    


  reverse   Reverse   the   sense   of   the   conversion,   i.e.   convert   from   ASCII   to   native 


  encoding:   The   native   encoding   the   files   are   in   (default   is   the   default   encoding   for       the   JVM)   


  src:   The   directory   to   find   files   in   (default   is   basedir)       


  dest:   The   directory   to   output   file   to   Yes    


  ext:   File   extension   to   use   in   renaming   output   files      


  defaultexcludes:   indicates   whether   default   excludes   should   be   used   or   not   ("yes"/"no")Default   excludes   are   used   when   omitted.         


  includes:   comma-   or   space-separated   list   of   patterns   of   files   that   must   be   included. All   files   are   included   when   omitted.  

     
  includesfile:   the   name   of   a   file.   Each   line   of   this   file   is   taken   to   be   an   include  pattern       


  excludes:   comma-   or   space-separated   list   of   patterns   of   files   that   must   be   excluded.   No   files   (except   default   excludes)   are   excluded   when   omitted.   

     
  excludesfile:   the   name   of   a   file.   Each   line   of   this   file   is   taken   to   be   an   exclude pattern      

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值