chetanmeh commented on a change in pull request #3059: Modify the unix script
URL:
https://github.com/apache/incubator-openwhisk/pull/3059#discussion_r155174489
##########
File path: build.gradle
##########
@@ -10,4 +10,29 @@ buildscript {
subprojects {
apply plugin: 'scalafmt'
scalafmt.configFilePath = gradle.scalafmt.config
+
+ afterEvaluate {
+ if (project.plugins.hasPlugin('application')) {
+ startScripts {
+ doLast {
+ unixScript.text = configureUnixClasspath(unixScript)
+ }
+ }
+ }
+ }
}
+
+def configureUnixClasspath(File script) {
+ script
+ .readLines()
+ .collect { line ->
+ // Looking for the line that starts with CLASSPATH=
+ line = line.replaceAll(~/^CLASSPATH=.*$/) { original ->
+
+ // Get original line and append it
+ // with the configuration directory.
+ original += ":\$APP_HOME/ext-lib/*:\$APP_HOME/config"
Review comment:
Good point. This was leftover of previous attempt which was also using a
variable for path separator. With that not used we can use single quote.
Updated that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services