异常情况:
今天运行单元测试,出现:
**Command line is too long. Shorten command line for XXX**错误。
错误原因命令行过长。
解决方案:
(1)修改workspace
第一个在workspace.xml文件里面修改,在标签<component name="PropertiesComponent">
添加:
<property name="dynamic.classpath" value="true" />
如图:
这种有个弊端是每个workspace都需要改。
(2)修改Shorten Command Line
将Shorten Command Line中默认值修改为classpath file
避免每一个java类都需要条件,我们可以将默认值调整一下。
选择完后apply,这就可以全部应用,避免后面都要调整。