From 1faf18633eb86367480b9021d42ff4f2a3b5f73c Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 2 Jul 2019 15:41:05 -0700 Subject: [PATCH] Add processResources Gradle task to replace property and tag placeholders in source files. --- spring-geode-docs/spring-geode-docs.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spring-geode-docs/spring-geode-docs.gradle b/spring-geode-docs/spring-geode-docs.gradle index f6cf8f3c..b7f54300 100644 --- a/spring-geode-docs/spring-geode-docs.gradle +++ b/spring-geode-docs/spring-geode-docs.gradle @@ -1,3 +1,5 @@ +import org.apache.tools.ant.filters.ReplaceTokens + apply plugin: 'io.spring.convention.docs' apply plugin: 'io.spring.convention.spring-test' @@ -55,3 +57,16 @@ javadoc { ] } } + +processResources { + eachFile { file -> + if (!file.name.endsWith(".jks")) { + file.filter ReplaceTokens, tokens: [ + 'project-dir' : rootProject.projectDir.path, + 'project-version' : project.version, + 'docs-dir' : rootProject.projectDir.path + '/spring-geode-docs', + 'samples-dir' : rootProject.projectDir.path + '/spring-geode-samples' + ] + } + } +}