Skip to content

Commit

Permalink
LRQA-29926 Automatically include all projects with a test.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Ithildir authored and brianchandotcom committed Jan 24, 2017
1 parent b3245e2 commit b942c55
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions settings.gradle
@@ -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[]

0 comments on commit b942c55

Please sign in to comment.