Skip to content

Commit 7c6f617

Browse files
committed
Build: Add ignoreDirtyWorkTree property
Setting the value of this property to true will omit the `--dirty` flag to `git describe` when generating the `git.commit.name`. This is helpful when comparing the build output to a previous build after making an uncommited change. Signed-off-by: Tony Germano <[email protected]>
1 parent 63dfe1f commit 7c6f617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/mirth-build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<project name="mirth-connect" basedir="." default="build">
1+
<project name="mirth-connect" basedir="." default="build" xmlns:unless="ant:unless">
22
<macrodef name="exec-with-default">
33
<attribute name="executable" />
44
<attribute name="property" />
@@ -58,7 +58,7 @@
5858
<arg value="v[0-9]*" />
5959
<arg value="--tags" />
6060
<arg value="--long" />
61-
<arg value="--dirty" />
61+
<arg value="--dirty" unless:true="${ignoreDirtyWorkTree}"/>
6262
</args>
6363
</exec-with-default>
6464
<echo>Using git.commit.name of [${git.commit.name}]</echo>

0 commit comments

Comments
 (0)