Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19854

Unable to access System property in Src code

$
0
0

I’d guess something like

task cucumber(type: JavaExec) {
   dependsOn assemble, compileTestJava
   systemProperty('env', System.properties['env'] ?: 'dev') 
   main = “io.cucumber.core.cli.Main”
   classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
   args = [’–plugin’, ‘pretty’, ‘–glue’, ‘CucumberTest’, ‘src/test/resources’]
}

Viewing all articles
Browse latest Browse all 19854

Trending Articles