Skip to content

Commit

Permalink
update unixScript.text template file
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Agarwal committed Nov 10, 2015
1 parent 6c40830 commit 458d515
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clouddriver-web/clouddriver-web.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ jar {
}
}


startScripts {
doLast {
unixScript.text = new File('clouddriver-web/config/unixStartScript.txt').text
doLast {
unixScript.text = unixScript.text.replace('DEFAULT_JVM_OPTS=', '\n if [ -f /etc/default/spinnaker ];then \n . /etc/default/spinnaker \n fi \n DEFAULT_JVM_OPTS=')
unixScript.text = unixScript.text.replace('CLASSPATH=$APP_HOME', 'CLASSPATH=$APP_HOME/config:$APP_HOME')
windowsScript.text = windowsScript.text.replace('set CLASSPATH=', 'set CLASSPATH=%APP_HOME%\\config;')
}
}


ospackage {
packageName = project.applicationName
version = project.version.replaceAll('-SNAPSHOT', '')
Expand Down

0 comments on commit 458d515

Please sign in to comment.