How do I set file.encoding for a junit test in ant?
来源:互联网 发布:cms监控设置回放 编辑:程序博客网 时间:2024/06/08 04:33
JUnit supports a child element <jvmarg ...>
which should do what you want.
<junit fork="yes">
<jvmarg value="-Dfile.encoding=UTF-8"/>
...
</junit>
I assume you were using the fork=yes
attribute since this starts a new JVM for the test run, thus the parameters you send into ant at the command line ant -Dfoo=bar
do not necessarily propagate to the JVM running the tests.
- How do I set file.encoding for a junit test in ant?
- How do I set file.encoding for a junit test in ant?
- How do I set file.encoding for a junit test in ant?
- How do I create zip file in Servlet for download?
- How do I set a preference value?
- How do I create a MEX file
- How do I rename a data file
- How do I rename a data file
- How do I install a file in my local repository along with a generic POM?
- Junit: How to skip a test case in Junit ?
- How do I tell if a regular file does not exist in bash?
- How can I change a file's encoding with vim?
- How do I get start in QA/Test
- How do I select a random line from a file?
- How do I set breakpoints in modal dialogs?
- A template build.xml for running junit test by ant
- How do I import function from .pyx file in python?
- How Do I Replace A System File? Try .KDFILES
- 禁止保存网页的方法
- 6.VC(ui)-MFC下实现透明位图
- android短信机制
- Linux发展及规划方向
- 【转】js小技巧
- How do I set file.encoding for a junit test in ant?
- 清理vs最近打开的项目
- php读取指定目录文件夹下所有文件夹及文件的方法
- Java设置定时器
- Java Data Binding Tools
- flash 传参问题,带有xml数据
- 琴琪拉吉他 - 大家多多支持
- C/C++中如何获取数组的长度?
- C# 多线程同步