[ 
https://issues.apache.org/jira/browse/EAGLE-663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hao Chen updated EAGLE-663:
---------------------------
    Description: 
{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"
    compiled: "$DATE, MacOSX, 1.8.0_74-b02"
}
{code}

  was:
{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}


> 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"
>     compiled: "$DATE, MacOSX, 1.8.0_74-b02"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to