Class GradleInstallation

  • All Implemented Interfaces:
    hudson.ExtensionPoint, hudson.model.Describable<hudson.tools.ToolInstallation>, hudson.model.EnvironmentSpecific<GradleInstallation>, hudson.slaves.NodeSpecific<GradleInstallation>, java.io.Serializable

    public class GradleInstallation
    extends hudson.tools.ToolInstallation
    implements hudson.model.EnvironmentSpecific<GradleInstallation>, hudson.slaves.NodeSpecific<GradleInstallation>, java.io.Serializable
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      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
    • Constructor Summary

      Constructors 
      Constructor Description
      GradleInstallation​(java.lang.String name, java.lang.String home, java.util.List<? extends hudson.tools.ToolProperty<?>> properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildEnvVars​(hudson.EnvVars env)  
      GradleInstallation forEnvironment​(hudson.EnvVars environment)  
      GradleInstallation forNode​(hudson.model.Node node, hudson.model.TaskListener log)  
      java.lang.String getExecutable​(hudson.Launcher launcher)  
      java.lang.String getHome()  
      • Methods inherited from class hudson.tools.ToolInstallation

        all, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplace
      • Methods inherited from class hudson.model.AbstractDescribableImpl

        getDescriptor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • UNIX_GRADLE_COMMAND

        public static final java.lang.String UNIX_GRADLE_COMMAND
        See Also:
        Constant Field Values
      • WINDOWS_GRADLE_COMMAND

        public static final java.lang.String WINDOWS_GRADLE_COMMAND
        See Also:
        Constant Field Values
      • UNIX_GRADLE_WRAPPER_COMMAND

        public static final java.lang.String UNIX_GRADLE_WRAPPER_COMMAND
        See Also:
        Constant Field Values
      • WINDOWS_GRADLE_WRAPPER_COMMAND

        public static final java.lang.String WINDOWS_GRADLE_WRAPPER_COMMAND
        See Also:
        Constant Field Values
    • Constructor Detail

      • GradleInstallation

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

      • getHome

        public java.lang.String getHome()
        Overrides:
        getHome in class hudson.tools.ToolInstallation
      • buildEnvVars

        public void buildEnvVars​(hudson.EnvVars env)
        Overrides:
        buildEnvVars in class hudson.tools.ToolInstallation
      • getExecutable

        public java.lang.String getExecutable​(hudson.Launcher launcher)
                                       throws java.io.IOException,
                                              java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.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 java.io.IOException,
                                          java.lang.InterruptedException
        Specified by:
        forNode in interface hudson.slaves.NodeSpecific<GradleInstallation>
        Throws:
        java.io.IOException
        java.lang.InterruptedException