반응형
ANT의 native2ascii 를 이용하여 여러개의 파일을 UTF-8로 변경하기
<?xml version="1.0" encoding="UTF-8"?>
<project name="native2ascii" default="convert" basedir=".">
<target name="init" >
<property name="javasrc.dir" value="D:\src" />
<property name="javabld.dir" value=".\java" />
</target>
<target name="clear">
<delete>
<fileset dir="${javabld.dir}" includes="**/*.java"/>
</delete>
</target>
<target name="convert" depends="init,clear">
<native2ascii encoding="UTF-8" reverse="true" src="${javasrc.dir}" dest="${javabld.dir}" includes="**/*.java"/>
</target>
</project>
<project name="native2ascii" default="convert" basedir=".">
<target name="init" >
<property name="javasrc.dir" value="D:\src" />
<property name="javabld.dir" value=".\java" />
</target>
<target name="clear">
<delete>
<fileset dir="${javabld.dir}" includes="**/*.java"/>
</delete>
</target>
<target name="convert" depends="init,clear">
<native2ascii encoding="UTF-8" reverse="true" src="${javasrc.dir}" dest="${javabld.dir}" includes="**/*.java"/>
</target>
</project>
반응형
'Know > Java' 카테고리의 다른 글
Maven local Repository에 custom jar 추가하기 (0) | 2010.10.07 |
---|---|
Hash (0) | 2009.08.14 |
MINA - Logging Configuration (0) | 2008.10.14 |
[Eclipse] Absent Line Number Information (0) | 2007.07.23 |
api 문서 링크 (0) | 2006.07.20 |