Skip to content

Commit

Permalink
OGM-329 Enabling resource filtering in order to add project version t…
Browse files Browse the repository at this point in the history
…o master-docinfo.xml
  • Loading branch information
gunnarmorling committed Aug 26, 2013
1 parent f2b8075 commit f59de83
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions hibernate-ogm-documentation/manual/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,28 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>filter-asciidoc-resources</id>
<phase>initialize</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/asciidoc-prepared</outputDirectory>
<resources>
<resource>
<directory>src/main/asciidoc</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--<subtitle>Some subtitle</subtitle -->
<releaseinfo>FIX Version interpolation in docinfo</releaseinfo>
<releaseinfo>${project.version}</releaseinfo>
<corpauthor>
<inlinemediaobject>
<imageobject>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@
</execution>
</executions>
<configuration>
<sourceDirectory>${basedir}/src/main/asciidoc/en-US</sourceDirectory>
<sourceDocumentName>${basedir}/src/main/asciidoc/en-US/master.asciidoc</sourceDocumentName>
<sourceDirectory>${project.build.directory}/asciidoc-prepared/en-US</sourceDirectory>
<sourceDocumentName>${project.build.directory}/asciidoc-prepared/en-US/master.asciidoc</sourceDocumentName>
<outputDirectory>${basedir}/target/docbook/en-US</outputDirectory>
<!-- templateDir>${basedir}/../asciidoc/src/main/backend/slim/docbook45</templateDir>
<templateEngine>slim</templateEngine -->
Expand Down

0 comments on commit f59de83

Please sign in to comment.