Skip to content

Commit 6ffb914

Browse files
authored
Merge pull request #15177 from dauer/issue-15170-docs-source-includes-not-found
Issue-15170 Docs - source includes not found
2 parents 0de145d + d2320c6 commit 6ffb914

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

grails-doc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ publishGuideTask.configure { PublishGuideTask publish ->
254254
[
255255
'cacheExampleSourceDir': rootProject.layout.projectDirectory.dir('grails-test-examples/cache').asFile,
256256
'sourcedir' : rootProject.layout.projectDirectory.asFile,
257-
'functionalSourceDir' : rootProject.layout.projectDirectory.asFile
257+
'functionalSourceDir' : rootProject.layout.projectDirectory.dir('grails-test-examples').asFile
258258
] as Map<String, String>
259259
}
260260
}

grails-doc/src/en/guide/async/events/asyncConsuming.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For example:
2626
----
2727
import grails.events.annotation.*
2828
...
29-
include::{sourcedir}/grails-events/transform/src/test/groovy/grails/events/annotation/PubSubSpec.groovy[tags=subscriber]
29+
include::{sourcedir}/grails-events/transforms/src/test/groovy/grails/events/annotation/PubSubSpec.groovy[tags=subscriber]
3030
----
3131

3232
In this example, every time a `sum` event occurs the subscriber will be invoked.
@@ -46,7 +46,7 @@ If you wish to subscribe to events dynamically or need more flexibility, then an
4646
import grails.events.bus.EventBusAware
4747
import jakarta.annotation.PostConstruct
4848
...
49-
include::{sourcedir}/grails-events/transform/src/test/groovy/grails/events/ManualPubSubSpec.groovy[tags=subscriber]
49+
include::{sourcedir}/grails-events/transforms/src/test/groovy/grails/events/ManualPubSubSpec.groovy[tags=subscriber]
5050
----
5151

5252
In this example the `TotalService` calls `subscribe` and passes a closure within a method called `init`. The `init` method is annotated with the annotation `@PostConstruct` so that is called after the `EventBus` has been injected by Spring, ensuring it is only called once and the events are correctly subscribed to.

grails-doc/src/en/guide/async/events/asyncNotifying.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For example:
2626
----
2727
import grails.events.annotation.*
2828
...
29-
include::{sourcedir}/grails-events/transform/src/test/groovy/grails/events/annotation/PubSubSpec.groovy[tags=publisher]
29+
include::{sourcedir}/grails-events/transforms/src/test/groovy/grails/events/annotation/PubSubSpec.groovy[tags=publisher]
3030
----
3131

3232
What the above does is take the return value of the method and publish an event using an event `id` that is the same as the method name.
@@ -45,7 +45,7 @@ If you want more flexiblity then you could simulate the behaviour of annotation
4545
----
4646
import grails.events.*
4747
...
48-
include::{sourcedir}/grails-events/transform/src/test/groovy/grails/events/ManualPubSubSpec.groovy[tags=publisher]
48+
include::{sourcedir}/grails-events/transforms/src/test/groovy/grails/events/ManualPubSubSpec.groovy[tags=publisher]
4949
----
5050

5151
Notice in the above example, the link:{api}grails/events/EventPublisher.html[EventPublisher] trait is explicitly implemented.

grails-doc/src/en/guide/testing/unitTesting/annotations.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ applied in conjunction with a fixture annnotation like `@Before` as shown below.
2727
[source,groovy]
2828
.src/test/groovy/grails/testing/spock/RunOnceSpec.groovy
2929
----
30-
include::{sourcedir}/grails-testing-support/src/test/groovy/grails/testing/spock/RunOnceSpec.groovy[indent=0]
30+
include::{sourcedir}/grails-testing-support-core/src/test/groovy/grails/testing/spock/RunOnceSpec.groovy[indent=0]
3131
----
3232

3333
Applying both the `@RunOnce` and `@Before` annotations to a method will yield
@@ -49,7 +49,7 @@ accomplishing the same behavior that would be accomplished by applying both the
4949
[source,groovy]
5050
.src/test/groovy/grails/testing/spock/OnceBeforeSpec.groovy
5151
----
52-
include::{sourcedir}/grails-testing-support/src/test/groovy/grails/testing/spock/OnceBeforeSpec.groovy[indent=0]
52+
include::{sourcedir}/grails-testing-support-core/src/test/groovy/grails/testing/spock/OnceBeforeSpec.groovy[indent=0]
5353
----
5454

5555
This is useful in the context of an integration test which wants to reference

0 commit comments

Comments
 (0)