Skip to content
Permalink
Browse files
GEODE-6180: Create unique results folder. (#23)
* Create unique results folder with timestamp if default output file is not set.
  • Loading branch information
nabarunnag committed Dec 11, 2018
1 parent a73f368 commit 3e920d3825f87bcb405072ae09b27cee09a85d5a
Showing 1 changed file with 6 additions and 1 deletion.
@@ -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()
}

0 comments on commit 3e920d3

Please sign in to comment.