Package org.gradle.api.internal.tasks

Examples of org.gradle.api.internal.tasks.DefaultTaskDependency


*/
public abstract class AbstractPublishArtifact implements PublishArtifact {
    private TaskDependency taskDependency;

    public AbstractPublishArtifact(Object... tasks) {
        taskDependency = new DefaultTaskDependency();
        ((DefaultTaskDependency) taskDependency).add(tasks);
    }
View Full Code Here


        assert project != null;
        assert name != null;
        path = project.absoluteProjectPath(name);
        state = new TaskStateInternal(toString());
        dynamicObjectHelper = new DynamicObjectHelper(this, new DefaultConvention());
        dependencies = new DefaultTaskDependency(project.getTasks());
        services = project.getServices().createFor(this);
        outputs = services.get(TaskOutputsInternal.class);
        inputs = services.get(TaskInputs.class);
        executer = services.get(TaskExecuter.class);
        loggingManager = services.get(LoggingManagerInternal.class);
View Full Code Here

    }

    public DefaultConfigurableFileTree(Map<String, ?> args, FileResolver resolver, TaskResolver taskResolver) {
        this.resolver = resolver != null ? resolver : new IdentityFileResolver();
        ConfigureUtil.configureByMap(args, this);
        buildDependency = new DefaultTaskDependency(taskResolver);
    }
View Full Code Here

    public PathResolvingFileCollection(String displayName, FileResolver fileResolver, TaskResolver taskResolver, Object... files) {
        this.displayName = displayName;
        this.resolver = fileResolver;
        this.files = new ArrayList<Object>(Arrays.asList(files));
        buildDependency = new DefaultTaskDependency(taskResolver);
    }
View Full Code Here

                "Cannot convert %s to type %s, as this type is not supported.", getDisplayName(),
                type.getSimpleName()));
    }

    public TaskDependency getBuildDependencies() {
        return new DefaultTaskDependency();
    }
View Full Code Here

public abstract class AbstractPublishArtifact implements PublishArtifact {
    private final DefaultTaskDependency taskDependency;

    public AbstractPublishArtifact(Object... tasks) {
        taskDependency = new DefaultTaskDependency();
        taskDependency.add(tasks);
    }
View Full Code Here

    public DefaultConfigurableFileTree(Map<String, ?> args, FileResolver resolver, TaskResolver taskResolver, FileCopier fileCopier) {
        this.resolver = resolver;
        this.fileCopier = fileCopier;
        ConfigureUtil.configureByMap(args, this);
        buildDependency = new DefaultTaskDependency(taskResolver);
    }
View Full Code Here

    public File asFile() {
        return asFile(Charset.defaultCharset().name());
    }

    public TaskDependency getBuildDependencies() {
        return new DefaultTaskDependency();
    }
View Full Code Here

                return headerDirs;
            }

            @Override
            public TaskDependency getBuildDependencies() {
                DefaultTaskDependency dependency = new DefaultTaskDependency();
                for (HeaderExportingSourceSet sourceSet : getSource().withType(HeaderExportingSourceSet.class)) {
                    dependency.add(sourceSet.getBuildDependencies());
                }
                return dependency;
            }
        };
    }
View Full Code Here

        public final TaskDependency getBuildDependencies() {
            if (hasOutputs()) {
                return AbstractNativeLibraryBinarySpec.this.getBuildDependencies();
            }
            return new DefaultTaskDependency();
        }
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.tasks.DefaultTaskDependency

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.