最近在搞tck测试,想要将其日志转换成apdu脚本,结果出现默认输出最大长度不足,输出被省略现象。
软件log出现的错误信息
...
Output overflow:
JavaTest Harness has limited the test output to the text to that
at the beginning and the end, so that you can see how the
test began, and how it completed.
If you need to see more of the output from the test,
set the system property javatest.maxOutputSize to a higher
value. The current value is 100000
...
查找帮助文档的解释
java -Djavatest.maxOutputSize=200000 -jar lib/javatest.jar ....
搞笑的,命令行后面弄个省略号,导致我们怎么设置都失败。
为了解决问题,我们就只能反编译jar文件了,看他是怎么实现的。
一段段看代码,终于找到具体参数,解决问题。
java -Djavatest.maxOutputSize=500000 -Xbootclasspath/p:lib/jc-scio.jar -Djavatest.security.noSecurityManager=true -jar lib/javatest.jar