use of org.gradle.internal.nativeintegration.filesystem.FileSystem in project gradle by gradle.
the class AbstractCopyTask method createCopyActionExecuter.
protected CopyActionExecuter createCopyActionExecuter() {
Instantiator instantiator = getInstantiator();
FileSystem fileSystem = getFileSystem();
return new CopyActionExecuter(instantiator, getObjectFactory(), fileSystem, false, getDocumentationRegistry());
}
use of org.gradle.internal.nativeintegration.filesystem.FileSystem in project gradle by gradle.
the class AbstractArchiveTask method createCopyActionExecuter.
@Override
protected CopyActionExecuter createCopyActionExecuter() {
Instantiator instantiator = getInstantiator();
FileSystem fileSystem = getFileSystem();
return new CopyActionExecuter(instantiator, getObjectFactory(), fileSystem, isReproducibleFileOrder(), getDocumentationRegistry());
}
use of org.gradle.internal.nativeintegration.filesystem.FileSystem in project gradle by gradle.
the class TestFiles method fileOperations.
public static FileOperations fileOperations(File basedDir, @Nullable TemporaryFileProvider temporaryFileProvider) {
FileResolver fileResolver = resolver(basedDir);
FileSystem fileSystem = fileSystem();
DefaultResourceHandler.Factory resourceHandlerFactory = DefaultResourceHandler.Factory.from(fileResolver, fileSystem, temporaryFileProvider, textResourceAdapterFactory(temporaryFileProvider));
return new DefaultFileOperations(fileResolver, temporaryFileProvider, TestUtil.instantiatorFactory().inject(), directoryFileTreeFactory(), streamHasher(), fileHasher(), resourceHandlerFactory, fileCollectionFactory(basedDir), objectFactory(), fileSystem, getPatternSetFactory(), deleter(), documentationRegistry(), providerFactory());
}
use of org.gradle.internal.nativeintegration.filesystem.FileSystem in project gradle by gradle.
the class DefaultFileOperations method createSimple.
public static DefaultFileOperations createSimple(FileResolver fileResolver, FileCollectionFactory fileTreeFactory, ServiceRegistry services) {
Instantiator instantiator = services.get(Instantiator.class);
ObjectFactory objectFactory = services.get(ObjectFactory.class);
FileSystem fileSystem = services.get(FileSystem.class);
DirectoryFileTreeFactory directoryFileTreeFactory = services.get(DirectoryFileTreeFactory.class);
StreamHasher streamHasher = services.get(StreamHasher.class);
FileHasher fileHasher = services.get(FileHasher.class);
ApiTextResourceAdapter.Factory textResourceAdapterFactory = services.get(ApiTextResourceAdapter.Factory.class);
Factory<PatternSet> patternSetFactory = services.getFactory(PatternSet.class);
Deleter deleter = services.get(Deleter.class);
DocumentationRegistry documentationRegistry = services.get(DocumentationRegistry.class);
ProviderFactory providers = services.get(ProviderFactory.class);
DefaultResourceHandler.Factory resourceHandlerFactory = DefaultResourceHandler.Factory.from(fileResolver, fileSystem, null, textResourceAdapterFactory);
return new DefaultFileOperations(fileResolver, null, instantiator, directoryFileTreeFactory, streamHasher, fileHasher, resourceHandlerFactory, fileTreeFactory, objectFactory, fileSystem, patternSetFactory, deleter, documentationRegistry, providers);
}
Aggregations