IDEA 10.5 命令行太长 [英] IDEA 10.5 Command line is too long

查看:95
本文介绍了IDEA 10.5 命令行太长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆