org.gradle.api.UnknownTaskException Java Examples

The following examples show how to use org.gradle.api.UnknownTaskException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AntTarget.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private Set<Task> getAntTargetDependencies() {
    Set<Task> tasks = new LinkedHashSet<Task>();
    Enumeration dependencies = target.getDependencies();
    while (dependencies.hasMoreElements()) {
        String name = (String) dependencies.nextElement();
        Task dependency = getProject().getTasks().findByName(name);
        if (dependency == null) {
            throw new UnknownTaskException(String.format("Imported Ant target '%s' depends on target or task '%s' which does not exist", getName(), name));
        }
        tasks.add(dependency);
    }
    return tasks;
}
 
Example #2
Source File: AntTarget.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private Set<Task> getAntTargetDependencies() {
    Set<Task> tasks = new LinkedHashSet<Task>();
    Enumeration dependencies = target.getDependencies();
    while (dependencies.hasMoreElements()) {
        String name = (String) dependencies.nextElement();
        Task dependency = getProject().getTasks().findByName(name);
        if (dependency == null) {
            throw new UnknownTaskException(String.format("Imported Ant target '%s' depends on target or task '%s' which does not exist", getName(), name));
        }
        tasks.add(dependency);
    }
    return tasks;
}
 
Example #3
Source File: DefaultTaskCollection.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected UnknownDomainObjectException createNotFoundException(String name) {
    return new UnknownTaskException(String.format("Task with name '%s' not found in %s.", name, project));
}
 
Example #4
Source File: DefaultTaskCollection.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected UnknownDomainObjectException createNotFoundException(String name) {
    return new UnknownTaskException(String.format("Task with name '%s' not found in %s.", name, project));
}
 
Example #5
Source File: DefaultTaskCollection.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected UnknownDomainObjectException createNotFoundException(String name) {
    return new UnknownTaskException(String.format("Task with name '%s' not found in %s.", name, project));
}
 
Example #6
Source File: DefaultTaskCollection.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected UnknownDomainObjectException createNotFoundException(String name) {
    return new UnknownTaskException(String.format("Task with name '%s' not found in %s.", name, project));
}
 
Example #7
Source File: TaskCollection.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getByName(String name, Closure configureClosure) throws UnknownTaskException;
 
Example #8
Source File: TaskCollection.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getAt(String name) throws UnknownTaskException;
 
Example #9
Source File: TaskCollection.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getByName(String name) throws UnknownTaskException;
 
Example #10
Source File: TaskCollection.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getByName(String name, Closure configureClosure) throws UnknownTaskException;
 
Example #11
Source File: TaskCollection.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getAt(String name) throws UnknownTaskException;
 
Example #12
Source File: TaskCollection.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getByName(String name) throws UnknownTaskException;
 
Example #13
Source File: TaskCollection.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getByName(String name, Closure configureClosure) throws UnknownTaskException;
 
Example #14
Source File: TaskCollection.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getAt(String name) throws UnknownTaskException;
 
Example #15
Source File: TaskCollection.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getByName(String name) throws UnknownTaskException;
 
Example #16
Source File: TaskCollection.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getByName(String name, Closure configureClosure) throws UnknownTaskException;
 
Example #17
Source File: TaskCollection.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getAt(String name) throws UnknownTaskException;
 
Example #18
Source File: TaskCollection.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * {@inheritDoc}
 */
T getByName(String name) throws UnknownTaskException;