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 DistributiongetClasspathDistribution()Uses the classpath to locate the distribution.DistributiongetDefaultDistribution(java.io.File projectDir, boolean searchUpwards)Returns the default distribution to use for the specified project.DistributiongetDistribution(java.io.File gradleHomeDir)Returns the distribution installed in the specified directory.DistributiongetDistribution(java.lang.String gradleVersion)Returns the distribution for the specified gradle version.DistributiongetDistribution(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.
-
-