HHH-17616 - More work related to moving resources
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
parent
2555a05cb6
commit
872d9ef1f7
|
@ -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]
|
||||||
----
|
----
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|
|
@ -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[]
|
||||||
----
|
----
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|
|
@ -245,13 +245,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'
|
||||||
|
|
|
@ -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'] )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue