|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.GradleLauncher
class GradleLauncher
GradleLauncher is the main entry point for embedding Gradle. You use this class to manage a Gradle build, as follows:
Nested Class Summary | |
---|---|
enum |
GradleLauncher.Stage
|
Constructor Summary | |
GradleLauncher(GradleInternal gradle, InitScriptHandler initScriptHandler, SettingsHandler settingsHandler, IGradlePropertiesLoader gradlePropertiesLoader, BuildLoader buildLoader, BuildConfigurer buildConfigurer, LoggingConfigurer loggingConfigurer, ListenerManager listenerManager)
Creates a new instance. |
Method Summary | |
---|---|
void
|
addListener(java.lang.Object listener)
Adds a { |
void
|
addStandardErrorListener(StandardOutputListener listener)
Adds a { |
void
|
addStandardOutputListener(StandardOutputListener listener)
Adds a { |
static StartParameter
|
createStartParameter(java.lang.String[] commandLineArgs)
Returns a StartParameter object out of command line syntax arguments. |
BuildResult
|
getBuildAnalysis()
Evaluates the settings and all the projects. |
BuildResult
|
getBuildAndRunAnalysis()
Evaluates the settings and all the projects. |
static void
|
injectCustomFactory(GradleFactory gradleFactory)
|
static GradleLauncher
|
newInstance(StartParameter startParameter)
Returns a GradleLauncher instance based on the passed start parameter. |
static GradleLauncher
|
newInstance(java.lang.String[] commandLineArgs)
Returns a GradleLauncher instance based on the passed command line syntax arguments. |
BuildResult
|
run()
Executes the build for this GradleLauncher instance and returns the result. |
GradleLauncher
|
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
GradleLauncher[]
|
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
public GradleLauncher(GradleInternal gradle, InitScriptHandler initScriptHandler, SettingsHandler settingsHandler, IGradlePropertiesLoader gradlePropertiesLoader, BuildLoader buildLoader, BuildConfigurer buildConfigurer, LoggingConfigurer loggingConfigurer, ListenerManager listenerManager)
Method Detail |
---|
public void addListener(java.lang.Object listener)
Adds a BuildListener to this build instance. The listener is notified of events which occur during the execution of the build.
public void addStandardErrorListener(StandardOutputListener listener)
Adds a StandardOutputListener to this build instance. The listener is notified of any text written to standard error by Gradle's logging system
public void addStandardOutputListener(StandardOutputListener listener)
Adds a StandardOutputListener to this build instance. The listener is notified of any text written to standard output by Gradle's logging system
public static StartParameter createStartParameter(java.lang.String[] commandLineArgs)
public BuildResult getBuildAnalysis()
public BuildResult getBuildAndRunAnalysis()
public static void injectCustomFactory(GradleFactory gradleFactory)
public static GradleLauncher newInstance(StartParameter startParameter)
public static GradleLauncher newInstance(java.lang.String[] commandLineArgs)
public BuildResult run()
Executes the build for this GradleLauncher instance and returns the result. Note that when the build fails, the exception is available using BuildResult#getFailure().
GradleLauncher valueOf(java.lang.String name)
GradleLauncher[] values()
Groovy Documentation