Search in sources :

Example 1 with PublicBuildPath

use of org.gradle.internal.build.PublicBuildPath in project gradle by gradle.

the class BuildStateFactory method buildDefinitionFor.

public BuildDefinition buildDefinitionFor(File buildSrcDir, BuildState owner) {
    PublicBuildPath publicBuildPath = owner.getMutableModel().getServices().get(PublicBuildPath.class);
    StartParameterInternal buildSrcStartParameter = buildSrcStartParameterFor(buildSrcDir, owner.getMutableModel().getStartParameter());
    BuildDefinition buildDefinition = BuildDefinition.fromStartParameterForBuild(buildSrcStartParameter, BUILD_SRC, buildSrcDir, PluginRequests.EMPTY, Actions.doNothing(), publicBuildPath, true);
    @SuppressWarnings("deprecation") File customBuildFile = buildSrcStartParameter.getBuildFile();
    assert customBuildFile == null;
    return buildDefinition;
}
Also used : PublicBuildPath(org.gradle.internal.build.PublicBuildPath) StartParameterInternal(org.gradle.api.internal.StartParameterInternal) File(java.io.File) BuildDefinition(org.gradle.api.internal.BuildDefinition)

Aggregations

File (java.io.File)1 BuildDefinition (org.gradle.api.internal.BuildDefinition)1 StartParameterInternal (org.gradle.api.internal.StartParameterInternal)1 PublicBuildPath (org.gradle.internal.build.PublicBuildPath)1