执行ant的build.xml遇到的两个问题
2009年2月10日
没有评论
1. 警告: 编码 GB18030 的不可映射字符
fix:在<javac>中加入编码参数,encoding=”ISO-8859-1″
2. Could not create task or type of type: junit
在eclipse里执行时,classpath下有junit.jar,但是还是说找不到,在命令行模式下可以
问题:eclipse的ant是ide自带的,在eclipse里执行时不会去调用${PATH}下的ant
fix:在eclipse里,window->preference->ant->runtime,加入junit.jar