Added a fix for the windows specific command line too long error when running the IRS demo.

This commit is contained in:
Clinton Alexander 2017-01-04 11:44:24 +00:00
parent f92ef3d9cf
commit 26217e5cd8

View File

@ -101,6 +101,16 @@ task integrationTest(type: Test, dependsOn: []) {
classpath = sourceSets.integrationTest.runtimeClasspath classpath = sourceSets.integrationTest.runtimeClasspath
} }
// This fixes the "line too long" error when running this demo with windows CLI
// TODO: Automatically apply to all projects via a plugin
tasks.withType(CreateStartScripts).each { task ->
task.doLast {
String text = task.windowsScript.text
text = text.replaceFirst(/(set CLASSPATH=%APP_HOME%\\lib\\).*/, { "${it[1]}*" })
task.windowsScript.write text
}
}
idea { idea {
module { module {
downloadJavadoc = true // defaults to false downloadJavadoc = true // defaults to false