This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-training.git
The following commit(s) were added to refs/heads/master by this push:
new 4e814f9 TRAINING-14: Replace outputFile parameter in asciidoctor
plugin with extra rename module to avoid overwriting files during generation
process.
new f81a2fa Merge pull request #16 from opencore/TRAINING-14
4e814f9 is described below
commit 4e814f953344e4fc92a22cffddb2dcd6465e64ed
Author: Sönke Liebau <[email protected]>
AuthorDate: Sat May 18 00:19:11 2019 +0200
TRAINING-14: Replace outputFile parameter in asciidoctor plugin with extra
rename module to avoid overwriting files during generation process.
---
content/ApacheWay/NavigatingASFIncubation/pom.xml | 21 +++++++++++++++++++--
tools/maven-revealjs-asciidoctor-templte/pom.xml | 21 +++++++++++++++++++--
2 files changed, 38 insertions(+), 4 deletions(-)
diff --git a/content/ApacheWay/NavigatingASFIncubation/pom.xml
b/content/ApacheWay/NavigatingASFIncubation/pom.xml
index e3661d7..32a51ad 100644
--- a/content/ApacheWay/NavigatingASFIncubation/pom.xml
+++ b/content/ApacheWay/NavigatingASFIncubation/pom.xml
@@ -36,6 +36,7 @@
<description>All about taking a project through incubation from start to
finish.</description>
<properties>
+ <project.main.contentfile>index</project.main.contentfile>
<project.slides.directory>${project.build.directory}/generated-slides</project.slides.directory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctor.maven.plugin.version>2.0.0-RC.1</asciidoctor.maven.plugin.version>
@@ -212,8 +213,6 @@
<sourceDirectory>src/main/asciidoc</sourceDirectory>
<!-- Configure the target director to where will
the output be generated -->
<outputDirectory>${project.slides.directory}</outputDirectory>
- <!-- output file-->
- <outputFile>index.html</outputFile>
<!-- Enable optional modules for generating
diagrams and charts -->
<requires>
<require>asciidoctor-diagram</require>
@@ -285,6 +284,24 @@
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.14.v20181114</version>
</plugin>
+ <plugin>
+ <groupId>com.coderplus.maven.plugins</groupId>
+ <artifactId>copy-rename-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>rename-slide-file</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+
<sourceFile>${project.slides.directory}/${project.main.contentfile}.revealjs</sourceFile>
+
<destinationFile>${project.slides.directory}/${project.main.contentfile}.html</destinationFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/tools/maven-revealjs-asciidoctor-templte/pom.xml
b/tools/maven-revealjs-asciidoctor-templte/pom.xml
index 939b28b..ae7f023 100644
--- a/tools/maven-revealjs-asciidoctor-templte/pom.xml
+++ b/tools/maven-revealjs-asciidoctor-templte/pom.xml
@@ -36,6 +36,7 @@
<description>An example project that demonstrates how to integrate convert
Asciidoc to a reveal.js presentation with the Asciidoctor Maven
plugin.</description>
<properties>
+ <project.main.contentfile>index</project.main.contentfile>
<project.slides.directory>${project.build.directory}/generated-slides</project.slides.directory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctor.maven.plugin.version>2.0.0-RC.1</asciidoctor.maven.plugin.version>
@@ -213,8 +214,6 @@
<sourceDirectory>src/main/asciidoc</sourceDirectory>
<!-- Configure the target director to where will
the output be generated -->
<outputDirectory>${project.slides.directory}</outputDirectory>
- <!-- output file-->
- <outputFile>index.html</outputFile>
<!-- Enable optional modules for generating
diagrams and charts -->
<requires>
<require>asciidoctor-diagram</require>
@@ -286,6 +285,24 @@
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.14.v20181114</version>
</plugin>
+ <plugin>
+ <groupId>com.coderplus.maven.plugins</groupId>
+ <artifactId>copy-rename-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>rename-slide-file</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>rename</goal>
+ </goals>
+ <configuration>
+
<sourceFile>${project.slides.directory}/${project.main.contentfile}.revealjs</sourceFile>
+
<destinationFile>${project.slides.directory}/${project.main.contentfile}.html</destinationFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>