Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add build-number to index.html
  • Loading branch information
Andrew Woods committed Oct 9, 2013
1 parent 3610f6d commit b711ab7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions fcrepo-webapp/pom.xml
Expand Up @@ -89,11 +89,21 @@
</dependencies>

<build>

<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<attachClasses>true</attachClasses>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<filtering>true</filtering>
<includes>
<include>index.html</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -185,6 +195,31 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<format>Build: ${project.version} on {0,date,yyyy-MM-dd}</format>
<items>
<item>timestamp</item>
</items>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<getRevisionOnlyOnce>true</getRevisionOnlyOnce>
<shortRevisionLength>5</shortRevisionLength>
</configuration>
</plugin>

</plugins>
</build>

Expand Down
1 change: 1 addition & 0 deletions fcrepo-webapp/src/main/webapp/index.html
Expand Up @@ -9,5 +9,6 @@

<p>You probably want to visit something a little more interesting, such as the
Fedora <a href="rest/">REST API</a> endpoint.</p>
<p>${buildNumber}</p>
</body>
</html>

0 comments on commit b711ab7

Please sign in to comment.