HHH-12190 - General tidying of Gradle scripts

- simple tidying
This commit is contained in:
Steve Ebersole 2018-01-16 15:47:05 -06:00
parent 65f42761d6
commit 84f8b1d479
1 changed files with 12 additions and 8 deletions

View File

@ -133,7 +133,7 @@ ext {
}
sourceSets.main {
java.srcDir jaxbTargetDir
java.srcDir project.jaxbTargetDir
}
// resources inherently exclude sources
@ -148,7 +148,7 @@ sourceSets.test.resources {
//}
xjc {
outputDir = jaxbTargetDir
outputDir = project.jaxbTargetDir
schemas {
cfg {
@ -169,14 +169,18 @@ xjc {
tasks.compile.dependsOn generateGrammarSource
task copyBundleResources (type: Copy) {
ext.bundlesTargetDir = file( "${buildDir}/bundles" )
ext {
bundlesTargetDir = file( "${buildDir}/bundles" )
bundleTokens = dbBundle[db]
ext.bundleTokens['buildDirName'] = buildDir.absolutePath
}
from file('src/test/bundles')
into bundlesTargetDir
ext.bundleTokens = dbBundle[db]
ext.bundleTokens['buildDirName'] = buildDir.absolutePath
filter( ReplaceTokens, tokens: bundleTokens);
into ext.bundlesTargetDir
filter( ReplaceTokens, tokens: ext.bundleTokens)
doFirst {
bundlesTargetDir.mkdirs()
ext.bundlesTargetDir.mkdirs()
}
}
processTestResources.dependsOn copyBundleResources