-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from rossabaker/master
Support parameter inheritance
- Loading branch information
Showing
4 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
invoker.goals= clean test-scala:echo | ||
invoker.goals= clean test-scala:echo test-scala:child-echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
def echoString = "HAI" | ||
def logFile = new File(basedir, "target/echo.txt") | ||
//Look for echo string | ||
def found = false; | ||
def fileNames = ["echo.txt", "child.txt"] | ||
|
||
System.out.println("Logfile = " + logFile) | ||
fileNames.each({ fileName -> | ||
def found = false | ||
def logFile = new File(basedir, "target/${fileName}") | ||
logFile.eachLine({ line -> | ||
if(line.startsWith(echoString)) { | ||
found = true | ||
} | ||
}); | ||
assert found | ||
}) | ||
|
||
logFile.eachLine({ line -> | ||
System.out.println("Checking line: " + line) | ||
if(line.startsWith(echoString)) { | ||
found = true; | ||
} | ||
}); | ||
|
||
assert found | ||
true | ||
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters