markusthoemmes commented on a change in pull request #3059: Modify the unix
script
URL:
https://github.com/apache/incubator-openwhisk/pull/3059#discussion_r155017846
##########
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:
Could use single quotes to circumenvent character escaping?
----------------------------------------------------------------
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