Set working directory in the same way Maven does

This seems to help ECJSyncDuplicatorTest find a "./src/Monitor2.java"
file that it needs.  The test still fails, though, for other reasons.
This commit is contained in:
Ben Liblit 2018-01-18 12:20:44 -06:00
parent da30f5dbb4
commit 1346a8ac55
1 changed files with 3 additions and 4 deletions

View File

@ -1,9 +1,6 @@
sourceSets.test {
java.srcDirs = ['source']
resources.srcDirs = [
'testdata',
project(':com.ibm.wala.cast.java.test.data').sourceSets.test.java,
]
resources.srcDirs = ['testdata']
}
dependencies {
@ -36,4 +33,6 @@ test {
exclude '**/ECJSyncDuplicatorTest.class'
exclude '**/JDTJava15IRTests.class'
exclude '**/JDTJavaIRTests.class'
workingDir project(':com.ibm.wala.cast.java.test.data').projectDir
}