Skip to content

Commit

Permalink
Grails GSP: Fixes failed test in GrailsConventionGroovyPageLocatorSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jul 14, 2023
1 parent bcdf1cd commit 1d604fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public class DefaultGroovyPageLocator implements GroovyPageLocator, ResourceLoad

private static final String PLUGINS_PATH = "/plugins/";

private static final String GRAILS_VIEWS_PATH = "/" + BuildSettings.GRAILS_APP_PATH + "/" + "views";

protected final Logger logger = LoggerFactory.getLogger(getClass());

protected Collection<ResourceLoader> resourceLoaders = new ConcurrentLinkedQueue<>();
Expand Down Expand Up @@ -370,7 +372,7 @@ protected List<String> resolveSearchPaths(String uri) {
}
else {
searchPaths = CollectionUtils.newList(
GrailsResourceUtils.appendPiecesForUri(BuildSettings.GRAILS_APP_PATH + File.separator + "views", uri),
GrailsResourceUtils.appendPiecesForUri(GRAILS_VIEWS_PATH, uri),
GrailsResourceUtils.appendPiecesForUri(PATH_TO_WEB_INF_VIEWS, uri),
uri);
}
Expand Down
1 change: 1 addition & 0 deletions grails-web-gsp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ dependencies {

testImplementation libs.spring.test
testImplementation project(":grails-test")
testImplementation project(":grails-plugin-i18n")
testRuntimeOnly project(":grails-spring")
}

0 comments on commit 1d604fb

Please sign in to comment.