File tree Expand file tree Collapse file tree 7 files changed +5
-11
lines changed
documentation/src/main/asciidoc/userguide/chapters
hibernate-core/src/test/resources/org/hibernate/orm/test Expand file tree Collapse file tree 7 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 33:root-project-dir: ../../../../../../..
44:core-project-dir: {root-project-dir}/hibernate-core
55:example-dir-event: {core-project-dir}/src/test/java/org/hibernate/orm/test/events
6+ :example-dir-event-resources: {core-project-dir}/src/test/resources/org/hibernate/orm/test/events
67:extrasdir: extras
78
89It 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
179180
180181[source, XML, indent=0]
181182----
182- include::{example-dir-event}/DefaultEntityListener-orm.xml[tags=events-default-listener-mapping-example]
183+ include::{example-dir-event-resources }/DefaultEntityListener-orm.xml[tags=events-default-listener-mapping-example]
183184----
184185====
185186
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ Considering the following HBM mapping:
8282====
8383[source, JAVA, indent=0]
8484----
85- include::{example-dir-schemagen} /SchemaGenerationTest.hbm.xml[]
85+ include::{example-dir-schemagen-resources}/org/hibernate/orm/test/schema /SchemaGenerationTest.hbm.xml[]
8686----
8787====
8888
Original file line number Diff line number Diff line change @@ -245,13 +245,6 @@ tasks.withType( Test.class ).each { test ->
245245sourceSets {
246246 test {
247247 resources {
248- // add `src/test/java` as a test-resources dir
249- configure( srcDir(' src/test/java' ) ) {
250- filter {
251- include ' **/*.properties'
252- include ' **/*.xml'
253- }
254- }
255248 configure( srcDir(' src/test/resources' ) ) {
256249 filter {
257250 include ' *.properties'
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ sourceSets {
1616 // resources inherently exclude sources
1717 test {
1818 resources {
19- setSrcDirs( [' src/test/java ' , ' src/test/ resources' ] )
19+ setSrcDirs( [' src/test/resources' ] )
2020 }
2121 }
2222}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ dependencies {
3535}
3636
3737sourceSets. test. resources {
38- setSrcDirs( [' src/test/java ' , ' src/test/ resources' ] )
38+ setSrcDirs( [' src/test/resources' ] )
3939}
4040
4141tasks. test {
You can’t perform that action at this time.
0 commit comments