Skip to content

Commit

Permalink
0001414: Add build information to Manifest and use it from AbstractVe…
Browse files Browse the repository at this point in the history
…rsion to get version information. Add build time to the version api
  • Loading branch information
chenson42 committed Sep 6, 2013
1 parent 19ee276 commit f49b54d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 0 additions & 2 deletions symmetric-core/src/main/resources/version.properties

This file was deleted.

14 changes: 12 additions & 2 deletions symmetric-parent/pom.xml
Expand Up @@ -30,8 +30,8 @@
<test.root>h2</test.root>
<test.client>h2</test.client>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format>yyMMdd_HHmm</maven.build.timestamp.format>
<project.build.timestamp>${maven.build.timestamp}</project.build.timestamp>
<BUILD_NUMBER>0</BUILD_NUMBER>
<JOB_NAME>DEV</JOB_NAME>
</properties>
<distributionManagement>
<!-- use the following if you're not using a snapshot version. -->
Expand Down Expand Up @@ -401,6 +401,16 @@
</execution>
</executions>
<configuration>
<archive>
<manifestEntries>
<Project-Group>${project.groupId}</Project-Group>
<Project-Artifact>${project.artifactId}</Project-Artifact>
<Build-Time>${maven.build.timestamp}</Build-Time>
<Build-Version>${project.version}</Build-Version>
<Build-Number>${BUILD_NUMBER}</Build-Number>
<Build-Job>${JOB_NAME}</Build-Job>
</manifestEntries>
</archive>
<outputDirectory>${basedir}/target</outputDirectory>
</configuration>
</plugin>
Expand Down

0 comments on commit f49b54d

Please sign in to comment.