diff --git a/samples/irs-demo/build.gradle b/samples/irs-demo/build.gradle index 85d30012fb..96b3404b09 100644 --- a/samples/irs-demo/build.gradle +++ b/samples/irs-demo/build.gradle @@ -101,6 +101,16 @@ task integrationTest(type: Test, dependsOn: []) { 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 { module { downloadJavadoc = true // defaults to false