Fix: fix involuntary modification of the .rb file
After normal compilation you could see that the file openbaton-nfvo.rb
was modified.
@@ -40,7 +40,7 @@ startScripts {
// to be executed just before the new release so that it gets the right version
task makeBrewFormula() {
-
+ doLast{
def brewFormula = new File("${rootProject.projectDir}/gradle/gradle/scripts/osx/openbaton-nfvo.rb")
String brewFormulaText = brewFormula.text
String brewFormulaTextNew = ""
@@ -50,13 +50,12 @@ task makeBrewFormula() {
line ->
if (line.trim().startsWith("version")) {
brewFormulaTextNew += " version \"" + version + "\"" + '\n'
- }
- else if(line.trim().startsWith("url")){
+ } else if (line.trim().startsWith("url")) {
brewFormulaTextNew += " url \"https://codeload.github.com/openbaton/NFVO/legacy.tar.gz/" + currentBranch + "\"" + '\n'
- }
- else {
+ } else {
brewFormulaTextNew += line + '\n'
}
}
brewFormula.text = brewFormulaTextNew
}
+}
