Search in sources :

Example 1 with FileSystem

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());
}
Also used : FileSystem(org.gradle.internal.nativeintegration.filesystem.FileSystem) Instantiator(org.gradle.internal.reflect.Instantiator) CopyActionExecuter(org.gradle.api.internal.file.copy.CopyActionExecuter)

Example 2 with FileSystem

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());
}
Also used : FileSystem(org.gradle.internal.nativeintegration.filesystem.FileSystem) Instantiator(org.gradle.internal.reflect.Instantiator) CopyActionExecuter(org.gradle.api.internal.file.copy.CopyActionExecuter)

Example 3 with FileSystem

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());
}
Also used : DefaultResourceHandler(org.gradle.api.internal.resources.DefaultResourceHandler) FileSystem(org.gradle.internal.nativeintegration.filesystem.FileSystem) VirtualFileSystem(org.gradle.internal.vfs.VirtualFileSystem) PathToFileResolver(org.gradle.internal.file.PathToFileResolver)

Example 4 with FileSystem

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);
}
Also used : Deleter(org.gradle.internal.file.Deleter) Instantiator(org.gradle.internal.reflect.Instantiator) StreamHasher(org.gradle.internal.hash.StreamHasher) FileHasher(org.gradle.internal.hash.FileHasher) ObjectFactory(org.gradle.api.model.ObjectFactory) DirectoryFileTreeFactory(org.gradle.api.internal.file.collections.DirectoryFileTreeFactory) DefaultResourceHandler(org.gradle.api.internal.resources.DefaultResourceHandler) FileSystem(org.gradle.internal.nativeintegration.filesystem.FileSystem) ProviderFactory(org.gradle.api.provider.ProviderFactory) DocumentationRegistry(org.gradle.api.internal.DocumentationRegistry) ApiTextResourceAdapter(org.gradle.api.internal.resources.ApiTextResourceAdapter) PatternSet(org.gradle.api.tasks.util.PatternSet)

Aggregations

FileSystem (org.gradle.internal.nativeintegration.filesystem.FileSystem)4 Instantiator (org.gradle.internal.reflect.Instantiator)3 CopyActionExecuter (org.gradle.api.internal.file.copy.CopyActionExecuter)2 DefaultResourceHandler (org.gradle.api.internal.resources.DefaultResourceHandler)2 DocumentationRegistry (org.gradle.api.internal.DocumentationRegistry)1 DirectoryFileTreeFactory (org.gradle.api.internal.file.collections.DirectoryFileTreeFactory)1 ApiTextResourceAdapter (org.gradle.api.internal.resources.ApiTextResourceAdapter)1 ObjectFactory (org.gradle.api.model.ObjectFactory)1 ProviderFactory (org.gradle.api.provider.ProviderFactory)1 PatternSet (org.gradle.api.tasks.util.PatternSet)1 Deleter (org.gradle.internal.file.Deleter)1 PathToFileResolver (org.gradle.internal.file.PathToFileResolver)1 FileHasher (org.gradle.internal.hash.FileHasher)1 StreamHasher (org.gradle.internal.hash.StreamHasher)1 VirtualFileSystem (org.gradle.internal.vfs.VirtualFileSystem)1