Hao Chen created EAGLE-663:
------------------------------
Summary: Build git head COMMITID into eagle package and display in
web page aside eagle version
Key: EAGLE-663
URL: https://issues.apache.org/jira/browse/EAGLE-663
Project: Eagle
Issue Type: Bug
Reporter: Hao Chen
Assignee: Hao Chen
{code}
# Get git-head commit ID
COMMITID=`git rev-parse HEAD`
# Get current maven version
VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}'
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
DATE=`date`
# Generate
classes/assets/build-version.json
# Access as static resource
/build-version.json
{
version: "$VERSION"
commit: "$COMMITID"
date: "$DATE"
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)