Class DistributionFactory
- java.lang.Object
-
- org.gradle.tooling.internal.consumer.DistributionFactory
-
public class DistributionFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DistributionFactory(org.gradle.internal.time.Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Distribution
getClasspathDistribution()
Uses the classpath to locate the distribution.Distribution
getDefaultDistribution(java.io.File projectDir, boolean searchUpwards)
Returns the default distribution to use for the specified project.Distribution
getDistribution(java.io.File gradleHomeDir)
Returns the distribution installed in the specified directory.Distribution
getDistribution(java.lang.String gradleVersion)
Returns the distribution for the specified gradle version.Distribution
getDistribution(java.net.URI gradleDistribution)
Returns the distribution at the given URI.
-
-
-
Method Detail
-
getDefaultDistribution
public Distribution getDefaultDistribution(java.io.File projectDir, boolean searchUpwards)
Returns the default distribution to use for the specified project.
-
getDistribution
public Distribution getDistribution(java.io.File gradleHomeDir)
Returns the distribution installed in the specified directory.
-
getDistribution
public Distribution getDistribution(java.lang.String gradleVersion)
Returns the distribution for the specified gradle version.
-
getDistribution
public Distribution getDistribution(java.net.URI gradleDistribution)
Returns the distribution at the given URI.
-
getClasspathDistribution
public Distribution getClasspathDistribution()
Uses the classpath to locate the distribution.
-
-