Skip to content

Commit

Permalink
Adds more information to the Version.txt file, namely a git commit ID…
Browse files Browse the repository at this point in the history
… and dates. Also sets the version to 1.1.0 for a numbered build.
  • Loading branch information
lucboudreau committed Jan 16, 2013
1 parent 10a62e1 commit 9fdcf8b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
# so that projects such as mondrian can run on the very latest; we switch for a
# specific revision number near to a release. Change 'xxx' the latest subversion
# change number; and put the same number in 'project.revision.minor'.)
project.revision=1.0.1-SNAPSHOT
project.revision=1.1.0
#project.revision=1.0.0.xxx

project.revision.major=1
project.revision.minor=00010539
project.revision.minor=01000000

ivy.artifact.id=olap4j
ivy.artifact.group=org.olap4j
Expand Down
18 changes: 17 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,23 @@ test.properties" />
</target>

<target name="version-properties">
<echo message="olap4j ${project.revision}${line.separator}" file="VERSION.txt" />
<exec executable="git" outputproperty="git.commit">
<arg line="log -n 1 --format=format:%H"/>
</exec>
<tstamp>
<format property="build.time" timezone="UTC" pattern="yyyy/MM/dd HH:mm:ss z"/>
</tstamp>
<!--echo message="olap4j ${project.revision}${line.separator}" file="VERSION.txt" /-->
<echo file="VERSION.txt">Title: ${ant.project.name}
Version: ${project.revision}
VersionMajor: ${project.revision.major}
VersionMinor: ${project.revision.minor}
Git-Latest-Commit: ${git.commit}
Ant-Version: ${ant.version}
Created-By: ${java.version} (${java.vendor})
Built-On: ${build.time}
Built-By: ${user.name}
Built-In: ${user.dir}</echo>
<echo file="${src.dir}/org/olap4j/driver/xmla/XmlaOlap4jDriverVersion.java">/*
* Project version information. Generated - do not modify.
*/
Expand Down

0 comments on commit 9fdcf8b

Please sign in to comment.