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;
}
Aggregations