Skip to content
Snippets Groups Projects
Commit 50b2e679 authored by felmer's avatar felmer
Browse files

SP-970, SWE-22: Add bcel.jar to ivy (needed by restrictionchecker). Add task...

SP-970, SWE-22: Add bcel.jar to ivy (needed by restrictionchecker). Add task 'checkRestrictions' on which 'test' will depend on.

SVN: 30110
parent 84aba802
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,14 @@ try { ...@@ -75,6 +75,14 @@ try {
group="cisd" group="cisd"
task checkRestrictions(type: Exec, dependsOn: [classes, testClasses]) {
doFirst {
cp = configurations.testCompile.filter({ f -> f.name.startsWith('restrictionchecker') || f.name.startsWith('bcel')}).asPath
commandLine 'java', '-cp', cp, 'ch.rinn.restrictions.RestrictionChecker', '-r',
sourceSets.main.output.classesDir, sourceSets.test.output.classesDir, '-cp', configurations.testCompile.asPath
}
}
test { test {
useTestNG() useTestNG()
options.suites('sourceTest/java/tests.xml') options.suites('sourceTest/java/tests.xml')
...@@ -83,6 +91,7 @@ test { ...@@ -83,6 +91,7 @@ test {
testLogging.showStandardStreams = true testLogging.showStandardStreams = true
} }
test.dependsOn checkRestrictions
task sourceJar(type: Jar) { task sourceJar(type: Jar) {
from sourceSets.main.allJava from sourceSets.main.allJava
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment