hudson.plugins.gradle
Class GradleInstallation

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tools.ToolInstallation>
      extended by hudson.tools.ToolInstallation
          extended by hudson.plugins.gradle.GradleInstallation
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tools.ToolInstallation>, hudson.model.EnvironmentSpecific<GradleInstallation>, hudson.slaves.NodeSpecific<GradleInstallation>, Serializable

public class GradleInstallation
extends hudson.tools.ToolInstallation
implements hudson.model.EnvironmentSpecific<GradleInstallation>, hudson.slaves.NodeSpecific<GradleInstallation>, Serializable

Author:
Gregory Boissinot
See Also:
Serialized Form

Nested Class Summary
static class GradleInstallation.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tools.ToolInstallation
hudson.tools.ToolInstallation.ToolConverter
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static String UNIX_GRADLE_COMMAND
           
static String UNIX_GRADLE_WRAPPER_COMMAND
           
static String WINDOWS_GRADLE_COMMAND
           
static String WINDOWS_GRADLE_WRAPPER_COMMAND
           
 
Constructor Summary
GradleInstallation(String name, String home, List<? extends hudson.tools.ToolProperty<?>> properties)
           
 
Method Summary
 GradleInstallation forEnvironment(hudson.EnvVars environment)
           
 GradleInstallation forNode(hudson.model.Node node, hudson.model.TaskListener log)
           
 String getExecutable(hudson.Launcher launcher)
           
 String getHome()
           
 String getWrapperExecutable(hudson.model.AbstractBuild<?,?> build)
           
 
Methods inherited from class hudson.tools.ToolInstallation
all, getName, getProperties, translateFor
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIX_GRADLE_COMMAND

public static final String UNIX_GRADLE_COMMAND
See Also:
Constant Field Values

WINDOWS_GRADLE_COMMAND

public static final String WINDOWS_GRADLE_COMMAND
See Also:
Constant Field Values

UNIX_GRADLE_WRAPPER_COMMAND

public static final String UNIX_GRADLE_WRAPPER_COMMAND
See Also:
Constant Field Values

WINDOWS_GRADLE_WRAPPER_COMMAND

public static final String WINDOWS_GRADLE_WRAPPER_COMMAND
See Also:
Constant Field Values
Constructor Detail

GradleInstallation

@DataBoundConstructor
public GradleInstallation(String name,
                                               String home,
                                               List<? extends hudson.tools.ToolProperty<?>> properties)
Method Detail

getHome

public String getHome()
Overrides:
getHome in class hudson.tools.ToolInstallation

getExecutable

public String getExecutable(hudson.Launcher launcher)
                     throws IOException,
                            InterruptedException
Throws:
IOException
InterruptedException

getWrapperExecutable

public String getWrapperExecutable(hudson.model.AbstractBuild<?,?> build)
                            throws IOException,
                                   InterruptedException
Throws:
IOException
InterruptedException

forEnvironment

public GradleInstallation forEnvironment(hudson.EnvVars environment)
Specified by:
forEnvironment in interface hudson.model.EnvironmentSpecific<GradleInstallation>

forNode

public GradleInstallation forNode(hudson.model.Node node,
                                  hudson.model.TaskListener log)
                           throws IOException,
                                  InterruptedException
Specified by:
forNode in interface hudson.slaves.NodeSpecific<GradleInstallation>
Throws:
IOException
InterruptedException


Copyright © 2004-2013. All Rights Reserved.