Java源码示例:org.gradle.api.UnknownTaskException
示例1
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;
}
示例2
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;
}
示例3
@Override
protected UnknownDomainObjectException createNotFoundException(String name) {
return new UnknownTaskException(String.format("Task with name '%s' not found in %s.", name, project));
}
示例4
@Override
protected UnknownDomainObjectException createNotFoundException(String name) {
return new UnknownTaskException(String.format("Task with name '%s' not found in %s.", name, project));
}
示例5
@Override
protected UnknownDomainObjectException createNotFoundException(String name) {
return new UnknownTaskException(String.format("Task with name '%s' not found in %s.", name, project));
}
示例6
@Override
protected UnknownDomainObjectException createNotFoundException(String name) {
return new UnknownTaskException(String.format("Task with name '%s' not found in %s.", name, project));
}
示例7
/**
* {@inheritDoc}
*/
T getByName(String name, Closure configureClosure) throws UnknownTaskException;
示例8
/**
* {@inheritDoc}
*/
T getByName(String name) throws UnknownTaskException;
示例9
/**
* {@inheritDoc}
*/
T getAt(String name) throws UnknownTaskException;
示例10
/**
* {@inheritDoc}
*/
T getByName(String name, Closure configureClosure) throws UnknownTaskException;
示例11
/**
* {@inheritDoc}
*/
T getByName(String name) throws UnknownTaskException;
示例12
/**
* {@inheritDoc}
*/
T getAt(String name) throws UnknownTaskException;
示例13
/**
* {@inheritDoc}
*/
T getByName(String name, Closure configureClosure) throws UnknownTaskException;
示例14
/**
* {@inheritDoc}
*/
T getByName(String name) throws UnknownTaskException;
示例15
/**
* {@inheritDoc}
*/
T getAt(String name) throws UnknownTaskException;
示例16
/**
* {@inheritDoc}
*/
T getByName(String name, Closure configureClosure) throws UnknownTaskException;
示例17
/**
* {@inheritDoc}
*/
T getByName(String name) throws UnknownTaskException;
示例18
/**
* {@inheritDoc}
*/
T getAt(String name) throws UnknownTaskException;