native2ascii的任务不工作 [英] Native2Ascii task not working
问题描述
我想使用的native2ascii ant任务,但似乎没有做任何事情。这里是我的Ant任务:
I'm trying to use the native2ascii ant task but it seems that is not doing anything. Here's my ant task:
<target name="-pre-init">
<native2ascii src="src/com/bluecubs/xinco/messages" dest="src/com/bluecubs/xinco/messages/test"
includes="**/_*.properties"/>
<copy todir="src/com/bluecubs/xinco/messages">
<fileset dir="src/com/bluecubs/xinco/messages/test"/>
</copy>
<delete dir="src/com/bluecubs/xinco/messages/test" />
</target>
我做了文案的一部分,看它是否是一个覆盖问题,但文件出来完全相同。
I did the copy part to see if it was an overwriting issue but the files come out exactly the same.
这是输出正在运行的任务时,我得到:
This is the output I get when running the task:
Converting 12 files from Z:\Netbeans\Xinco\2.01.xx\Xinco\src\com\bluecubs\xinco\messages to Z:\Netbeans\Xinco\2.01.xx\Xinco\src\com\bluecubs\xinco\messages\test
Copying 12 files to Z:\Netbeans\Xinco\2.01.xx\Xinco\src\com\bluecubs\xinco\messages
Deleting directory Z:\Netbeans\Xinco\2.01.xx\Xinco\src\com\bluecubs\xinco\messages\test
编辑:
更多信息:
操作系统:Windows 7(但答案应该在任何OD工作)
文件编码:西部(ISO-8859-1)与此获得<一个href=\"http://developers.sun.com/global/technology/standards/reference/faqs/determining-file-encoding.html\"相对=nofollow>文章。
任何想法?
推荐答案
它结束是一个观点的问题。寻找在原始编辑(即写字板)中的文件显示,这些文件已经由任务转换。从NetBeans中查看他们显示他们是一样的。
It ended being a view issue. Looking the files in a raw editor (i.e. Wordpad) showed that the files were already converted by the task. Viewing them from NetBeans shows them the same.
这篇关于native2ascii的任务不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!