HHH-17616 - More work related to moving resources

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2024-01-08 23:59:17 +01:00 committed by Christian Beikov
parent d085936fcb
commit 355f5c8005
7 changed files with 5 additions and 11 deletions

View File

@ -3,6 +3,7 @@
:root-project-dir: ../../../../../../.. :root-project-dir: ../../../../../../..
:core-project-dir: {root-project-dir}/hibernate-core :core-project-dir: {root-project-dir}/hibernate-core
:example-dir-event: {core-project-dir}/src/test/java/org/hibernate/orm/test/events :example-dir-event: {core-project-dir}/src/test/java/org/hibernate/orm/test/events
:example-dir-event-resources: {core-project-dir}/src/test/resources/org/hibernate/orm/test/events
:extrasdir: extras :extrasdir: extras
It is useful for the application to react to certain events that occur inside Hibernate. It is useful for the application to react to certain events that occur inside Hibernate.
@ -179,7 +180,7 @@ include::{example-dir-event}/DefaultEntityListener.java[tags=events-default-list
[source, XML, indent=0] [source, XML, indent=0]
---- ----
include::{example-dir-event}/DefaultEntityListener-orm.xml[tags=events-default-listener-mapping-example] include::{example-dir-event-resources}/DefaultEntityListener-orm.xml[tags=events-default-listener-mapping-example]
---- ----
==== ====

View File

@ -82,7 +82,7 @@ Considering the following HBM mapping:
==== ====
[source, JAVA, indent=0] [source, JAVA, indent=0]
---- ----
include::{example-dir-schemagen}/SchemaGenerationTest.hbm.xml[] include::{example-dir-schemagen-resources}/org/hibernate/orm/test/schema/SchemaGenerationTest.hbm.xml[]
---- ----
==== ====

View File

@ -246,13 +246,6 @@ tasks.withType( Test.class ).each { test ->
sourceSets { sourceSets {
test { test {
resources { resources {
// add `src/test/java` as a test-resources dir
configure( srcDir('src/test/java') ) {
filter {
include '**/*.properties'
include '**/*.xml'
}
}
configure( srcDir('src/test/resources') ) { configure( srcDir('src/test/resources') ) {
filter { filter {
include '*.properties' include '*.properties'

View File

@ -16,7 +16,7 @@ sourceSets {
// resources inherently exclude sources // resources inherently exclude sources
test { test {
resources { resources {
setSrcDirs( ['src/test/java','src/test/resources'] ) setSrcDirs( ['src/test/resources'] )
} }
} }
} }

View File

@ -35,7 +35,7 @@ dependencies {
} }
sourceSets.test.resources { sourceSets.test.resources {
setSrcDirs( ['src/test/java', 'src/test/resources'] ) setSrcDirs( ['src/test/resources'] )
} }
tasks.test { tasks.test {