use of org.gradle.api.internal.file.DefaultFileLookup in project gradle by gradle.
the class DefaultExecActionFactory method root.
// Do not use this. It's here because some of the services this type needs are not easily accessed in certain cases and will be removed ay some point. Use one of the other methods instead
@Deprecated
public static DefaultExecActionFactory root(File gradleUserHome) {
requireNonNull(gradleUserHome, "gradleUserHome");
Factory<PatternSet> patternSetFactory = PatternSets.getNonCachingPatternSetFactory();
FileResolver resolver = new DefaultFileLookup().getFileResolver();
DefaultFileCollectionFactory fileCollectionFactory = new DefaultFileCollectionFactory(resolver, DefaultTaskDependencyFactory.withNoAssociatedProject(), new DefaultDirectoryFileTreeFactory(), patternSetFactory, PropertyHost.NO_OP, FileSystems.getDefault());
GradleUserHomeDirProvider userHomeDirProvider = () -> gradleUserHome;
TemporaryFileProvider temporaryFileProvider = new GradleUserHomeTemporaryFileProvider(userHomeDirProvider);
return of(resolver, fileCollectionFactory, new InstantiatorBackedObjectFactory(DirectInstantiator.INSTANCE), new DefaultExecutorFactory(), new DefaultBuildCancellationToken(), temporaryFileProvider);
}
Aggregations