Skip to content

Commit

Permalink
Improved: Merge regexps inside ‘createOfbizCommandTask’
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855798 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Mar 18, 2019
1 parent 0b53c96 commit 280ae49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -984,9 +984,7 @@ def createOfbizCommandTask(taskName, arguments) {
classpath = files(jar.outputs)
main = ofbizMainClass
args arguments

if (taskName ==~ /^ofbiz.*--test.*/
|| taskName ==~ /^ofbiz.*-t.*/) {
if (taskName ==~ /^ofbiz.*(--test|-t).*/) {
finalizedBy(createTestReports)
}
}
Expand Down

0 comments on commit 280ae49

Please sign in to comment.