我想创建一个脚本来修改intellij中的调试配置.tomcat的路径发生了变化,我必须手动进入运行配置并编辑内容.我试图找到intellij存储这些设置的地方无济于事.
问题:有没有人知道IJ存储其运行配置的位置
在我使用IntelliJ的那个月左右,我有一个项目,我在大多数时间工作,我有我的所有窗口,工具栏位置等,根据自己的喜好设置.
我很少需要在IntelliJ中打开其他项目,我注意到这样做时所有窗口位置似乎都重置为默认值.例如,"结构"工具栏移回屏幕的左下角; 我更喜欢它停靠在右上角.
窗口和工具位置的设置可以在不同的IntelliJ项目之间共享吗?我可以在全球范围内配置一次,并将其应用于我在IntelliJ中打开的任何新项目吗?
此外,有谁知道这些类型的设置存储在哪里 - 我假设它在每个项目的IntelliJ文件(如.ipr,等)而不是我的全局.settings目录?
使用IntelliJ IDEA 14.0.2,我导入了一个gradle java项目.我们已经设置了一个sourceSet和配置来将集成测试与单元测试分开.(我们的集成测试在测试源代码树中,但在他们自己的包中).build.gradle的相关位是:
sourceSets {
test {
java {
exclude '**/it/**'
}
}
integTest {
java {
srcDir 'src/test/java'
include '**/it/**'
}
resources {
srcDir 'src/test/resources'
}
compileClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntime
runtimeClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntime
}
}
configurations {
integTestCompile.extendsFrom testCompile
integTestRuntime.extendsFrom testRuntime
}
idea {
module {
scopes.TEST.plus += [ configurations.integTestCompile ]
}
}
task integTest(type: Test) {
testClassesDir = sourceSets.integTest.output.classesDir
classpath = sourceSets.integTest.runtimeClasspath
}
Run Code Online (Sandbox Code Playgroud)
从命令行可以正常工作.但是当我在IntelliJ中打开集成测试的源代码并右键单击以运行它时,IntelliJ启动"测试"任务而不是"整合测试"任务.如何让IntelliJ启动正确的任务?
或者,如何根据"--tests"arg的内容将测试任务委托给另一个任务?
刚刚在Jetbrains论坛上问过,但那里的活动并不多......所以我没有得到任何答案.
是否可以将项目设置复制到另一个项目?我想要导出项目模块,依赖项,运行配置等等.
如果Intellij无法做到,是否有任何具有此功能的插件?