Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LRQA-29926 Automatically include all projects with a test.properties
- Loading branch information
1 parent
b3245e2
commit b942c55
Showing
1 changed file
with
15 additions
and
4 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,4 +1,15 @@ | ||
include "portlets:lcs-portlet" | ||
include "portlets:loop-portlet" | ||
include "portlets:osb-patcher-portlet" | ||
include "portlets:so-portlet" | ||
FileTree testPropertiesFileTree = fileTree(dir: rootDir, include: "**/test/functional/test.properties") | ||
|
||
URI rootURI = rootDir.toURI() | ||
|
||
include testPropertiesFileTree.collect { | ||
File testPropertiesFile -> | ||
|
||
File dir = testPropertiesFile.parentFile.parentFile.parentFile | ||
|
||
URI relativeURI = rootURI.relativize(dir.toURI()) | ||
|
||
String projectPath = relativeURI.path.replace('/' as char, ':' as char) | ||
|
||
":" + projectPath[0 .. -2] | ||
} as String[] |