Gradle Object Instance: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:


{{External|https://docs.gradle.org/current/javadoc/org/gradle/StartParameter.html}}
{{External|https://docs.gradle.org/current/javadoc/org/gradle/StartParameter.html}}
The StartParameter instance provides access to parsed command line arguments:
<syntaxhighlight lang='groovy'>
println "contains someTask? " + gradle.startParameter.taskNames.contains('someTask')
</syntaxhighlight>

Revision as of 17:49, 22 May 2018

External

Internal

Overview

TaskExecutionGraph

StartParameter

https://docs.gradle.org/current/javadoc/org/gradle/StartParameter.html

The StartParameter instance provides access to parsed command line arguments:

println "contains someTask? " + gradle.startParameter.taskNames.contains('someTask')