Skip to content

Commit ffa5b7a

Browse files
committed
Set wildcard classpath for windows start batch (#371)
The generated start script for Windows consists of a huge classpath. This classpath was too long, resulting in an error when executing the start script. Using wildcard to include libraries shortens the classpath so that now error occurs when executing the start script.
1 parent 8ea116a commit ffa5b7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

metafix-runner/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ plugins {
22
id 'application'
33
}
44

5+
application
6+
startScripts {
7+
doLast {
8+
def winScriptFile = file getWindowsScript()
9+
def winFileText = winScriptFile.text
10+
winFileText = winFileText.replaceAll('set CLASSPATH=.*', 'rem original CLASSPATH declaration replaced, see https://github.com/metafacture/metafacture-fix/issues/371:\nset CLASSPATH=%APP_HOME%\\\\lib\\\\\\*')
11+
winScriptFile.text = winFileText
12+
}
13+
}
14+
515
dependencies {
616
implementation project(':metafix')
717

0 commit comments

Comments
 (0)