HHH-5693 Moved the bundlesTargetDir creation outside copy task

This commit is contained in:
Hardy Ferentschik 2010-10-26 14:47:51 +02:00
parent c3dd29af3f
commit 2b2fb03aa4
1 changed files with 5 additions and 3 deletions

View File

@ -55,10 +55,9 @@ compileTestJava {
}
compileTestJava.dependsOn generateMetaModel
task copyBundleResources (type: Copy) {
bundlesTargetDirName = "$buildDirName/bundles"
bundlesTargetDir = dir( bundlesTargetDirName )
task copyBundleResources (type: Copy) {
from file('src/test/bundles')
into bundlesTargetDir.dir
filter(ReplaceTokens, tokens: [
@ -70,6 +69,9 @@ task copyBundleResources (type: Copy) {
'jdbc.url': 'jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE',
])
}
copyBundleResources.dependsOn bundlesTargetDir
// make sure that the bundles for the packaged test (PackagingTestCase) are copied as well
processTestResources.dependsOn copyBundleResources
ideaModule {