Skip to content

Commit

Permalink
GEODE-6180: Create unique results folder. (#23)
Browse files Browse the repository at this point in the history
* Create unique results folder with timestamp if default output file is not set.
  • Loading branch information
nabarunnag authored Dec 11, 2018
1 parent a73f368 commit 3e920d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion geode-benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

def outputDir = project.hasProperty('outputDir') ? project.findProperty('outputDir') : new File(project.buildDir, "benchmarks").getAbsolutePath()
def outputDir = project.hasProperty('outputDir') ? project.findProperty('outputDir') : new File(project.buildDir, "benchmarks_" + getDate()).getAbsolutePath()
def geodeVersion = project.hasProperty('geodeVersion') ? project.findProperty('geodeVersion') : '1.+'

def getDate() {
new Date().format('yyyyMMddHHmmss')
}


repositories {
mavenCentral()
}
Expand Down

0 comments on commit 3e920d3

Please sign in to comment.