You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by "Hao Chen (JIRA)" <ji...@apache.org> on 2016/10/22 06:39:58 UTC
[jira] [Created] (EAGLE-663) Build git head COMMITID into eagle
package and display in web page aside eagle version
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)