markusthoemmes commented on a change in pull request #3059: Modify the unix
script
URL:
https://github.com/apache/incubator-openwhisk/pull/3059#discussion_r154991954
##########
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)
+ }
+ }
+ }
+ }
Review comment:
I googled for a bit and stumbled upon:
```groovy
startScripts {
classpath += files('ext-libs/*', 'config')
}
```
There seems to be a possibility to do this other than manipulating raw lines
(which feels a bit rough). I'd need to look further into this, since gradle
seems to apply some sanitizing unfortunately.
----------------------------------------------------------------
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