Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
adibrov committed Sep 5, 2016
1 parent 125686f commit 17f46bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ dockfxdemo.jar
.git/modules
/bin
target
.gradle
.gradle
/build/
19 changes: 13 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,19 @@ if (JavaVersion.current().isJava8Compatible()) {
*/
def getVersionName = {
->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
try
{
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
}
catch(Throwable e)
{
println e
}
}

group = 'org.dockfx'
Expand Down

0 comments on commit 17f46bd

Please sign in to comment.