Fix jakarta tests

This commit is contained in:
Andrea Boriero 2021-05-31 13:02:16 +02:00
parent 8c9330a8ff
commit 88f50a1943
1 changed files with 5 additions and 2 deletions

View File

@ -150,10 +150,13 @@ task copyBundleResources (type: Copy) {
bundleTokens = dbBundle[db]
ext.bundleTokens['buildDirName'] = buildDir.absolutePath
}
from file("${buildDir}/unpacked/${unpackedDir.name}/templates")
into ext.bundlesTargetDir
filter( ReplaceTokens, tokens: ext.bundleTokens)
// There are persistence.xml files referencing jar files through their absolute path so we
// have to replace 'hibernate-core/hibernate-core' in the path with 'hibernate-core/hibernate-core-jakarta'
filter { line ->
line.replaceAll( 'hibernate-core/hibernate-core', 'hibernate-core/hibernate-core-jakarta' )
}
doFirst {
ext.bundlesTargetDir.mkdirs()
}