[About] Use timestamp, build number

Use timestamp and build number (as filterable properties) in
the built core bundle. WTD-699.
This commit is contained in:
Victor Woeltjen 2015-01-22 17:12:52 -08:00
parent 740dde63a7
commit e4def8a3f5
2 changed files with 15 additions and 9 deletions

View File

@ -7,13 +7,19 @@
{ {
"name": "Open MCT Web", "name": "Open MCT Web",
"value": "${project.version}", "value": "${project.version}",
"priority": 1000 "priority": 999
}, },
{ {
"name": "Built", "name": "Built",
"value": "YYYY-MM-DDTHH:MM:ssZ", "value": "${timestamp}",
"description": "The date on which this version of the client was built.", "description": "The date on which this version of the client was built.",
"priority": 990 "priority": 990
},
{
"name": "Revision",
"value": "${buildNumber}",
"description": "A unique revision identifier for the client sources.",
"priority": 995
} }
], ],
"components": [ "components": [

14
pom.xml
View File

@ -13,6 +13,11 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<!-- SCM info, for build number plugin -->
<scm>
<connection>scm:git:${basedir}</connection>
</scm>
<build> <build>
<plugins> <plugins>
@ -64,17 +69,12 @@
<goal>create</goal> <goal>create</goal>
</goals> </goals>
</execution> </execution>
<execution>
<phase>validate</phase>
<goals>
<goal>create-timestamp</goal>
</goals>
</execution>
</executions> </executions>
<configuration> <configuration>
<timestampFormat>yyyy-MM-dd HH:mm:ss</timestampFormat> <timestampFormat>{0,date,yyyy-MM-dd HH:mm:ss.SSSZ}</timestampFormat>
<doCheck>true</doCheck> <doCheck>true</doCheck>
<doUpdate>false</doUpdate> <doUpdate>false</doUpdate>
<revisionOnScmFailure>Unknown</revisionOnScmFailure>
</configuration> </configuration>
</plugin> </plugin>