diff options
Diffstat (limited to 'nbproject')
| -rw-r--r-- | nbproject/dist-build.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nbproject/dist-build.xml b/nbproject/dist-build.xml index c317d95..b1bfadf 100644 --- a/nbproject/dist-build.xml +++ b/nbproject/dist-build.xml @@ -10,6 +10,10 @@ <tempfile property="temp.file" destDir="${java.io.tmpdir}" suffix=".jar"/> <tempfile property="temp.previous_jar" destdir="${java.io.tmpdir}" suffix=".jar"/> + <exec executable="git" outputproperty="git.commit" failifexecutionfails="false"> + <arg line="rev-parse --short HEAD"/> + </exec> + <copy file="${store.jar}" tofile="${temp.previous_jar}" failonerror="false"/> <echo message="Backed up ${store.jar} into ${temp.previous_jar}"/> @@ -20,6 +24,7 @@ <manifest> <attribute name="Main-Class" value="${main.class}"/> + <attribute name="Git-Commit" value="${git.commit}"/> </manifest> </jar> |
