Search in sources :

Example 1 with Instantiator

use of org.gradle.internal.reflect.Instantiator in project gradle by gradle.

the class AbstractCopyTask method createRootSpec.

protected CopySpecInternal createRootSpec() {
    Instantiator instantiator = getInstantiator();
    FileResolver fileResolver = getFileResolver();
    return instantiator.newInstance(DefaultCopySpec.class, fileResolver, instantiator);
}
Also used : Instantiator(org.gradle.internal.reflect.Instantiator) FileResolver(org.gradle.api.internal.file.FileResolver)

Example 2 with Instantiator

use of org.gradle.internal.reflect.Instantiator in project gradle by gradle.

the class Sync method createRootSpec.

@Override
protected CopySpecInternal createRootSpec() {
    Instantiator instantiator = getInstantiator();
    FileResolver fileResolver = getFileResolver();
    return instantiator.newInstance(DestinationRootCopySpec.class, fileResolver, super.createRootSpec());
}
Also used : Instantiator(org.gradle.internal.reflect.Instantiator) FileResolver(org.gradle.api.internal.file.FileResolver)

Example 3 with Instantiator

use of org.gradle.internal.reflect.Instantiator 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 4 with Instantiator

use of org.gradle.internal.reflect.Instantiator 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 5 with Instantiator

use of org.gradle.internal.reflect.Instantiator in project gradle by gradle.

the class TestContainer method doCreate.

protected TestObject doCreate(String name) {
    Instantiator instantiator = getInstantiator();
    TestObject testObject = new TestObject(instantiator);
    testObject.setName(name);
    return testObject;
}
Also used : Instantiator(org.gradle.internal.reflect.Instantiator)

Aggregations

Instantiator (org.gradle.internal.reflect.Instantiator)17 FileResolver (org.gradle.api.internal.file.FileResolver)4 RepositoryTransport (org.gradle.api.internal.artifacts.repositories.transport.RepositoryTransport)3 FileSystem (org.gradle.internal.nativeintegration.filesystem.FileSystem)3 File (java.io.File)2 ComponentMetadataListerDetails (org.gradle.api.artifacts.ComponentMetadataListerDetails)2 ComponentMetadataSupplierDetails (org.gradle.api.artifacts.ComponentMetadataSupplierDetails)2 MavenMetadataLoader (org.gradle.api.internal.artifacts.repositories.maven.MavenMetadataLoader)2 IvyResolver (org.gradle.api.internal.artifacts.repositories.resolver.IvyResolver)2 MavenResolver (org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver)2 CopyActionExecuter (org.gradle.api.internal.file.copy.CopyActionExecuter)2 ProviderFactory (org.gradle.api.provider.ProviderFactory)2 URI (java.net.URI)1 InvalidUserDataException (org.gradle.api.InvalidUserDataException)1 DefaultPolymorphicDomainObjectContainer (org.gradle.api.internal.DefaultPolymorphicDomainObjectContainer)1 DocumentationRegistry (org.gradle.api.internal.DocumentationRegistry)1 DynamicPropertyNamer (org.gradle.api.internal.DynamicPropertyNamer)1 FactoryNamedDomainObjectContainer (org.gradle.api.internal.FactoryNamedDomainObjectContainer)1 ReflectiveNamedDomainObjectFactory (org.gradle.api.internal.ReflectiveNamedDomainObjectFactory)1 ComponentMetadataProcessor (org.gradle.api.internal.artifacts.ComponentMetadataProcessor)1