`

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

    博客分类:
  • ant
阅读更多

<?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      

分享到:
评论
1 楼 bryan.liu 2009-11-30  
Thank you

相关推荐

Global site tag (gtag.js) - Google Analytics