IDEA 10.5 命令行太长 [英] IDEA 10.5 Command line is too long
问题描述
在 Maven 项目中,当我运行测试用例时(在 Windows 上):
In Maven project when I run test case (on Windows):
运行 TestApp.readParameter 时出错:命令行太长.在为了减少它的长度,可以使用类路径文件.你愿意吗为您的所有运行配置启用类路径文件模式项目?启用
Error running TestApp.readParameter: Command line is too long. In order to reduce its length classpath file can be used. Would you like to enable classpath file mode for all run configurations of your project? Enable
设置.iws
<property name="dynamic.classpath" value="true" />
如何解决这个问题?
推荐答案
在 Intellij 中,转到编辑配置"(运行 -> 编辑配置),在缩短命令行"行中出现的配置选项卡中选择选项类路径文件"/@argFiles (Java 9+)",下拉菜单中的最后一个选项.帮我修好了.
In Intellij, go to "edit configurations" (Run -> Edit Configurations), in the configuration tab that comes up in the line "shorten command line" select option "classpath file"/"@argFiles (Java 9+)", last option in the drop down menu. Fixed it for me.
这篇关于IDEA 10.5 命令行太长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!