for (int i = 0; i <= retryCount; i++) { try { nestedTask.perform(); break; } catch (Exception e) {
/** * Executes the task within a thread and takes care about * Exceptions raised within the task. */ @Override public void run() { try { LocalProperties.get(getProject()).copy(); thread = Thread.currentThread(); task.perform(); } catch (Throwable t) { exception = t; if (failOnAny) { stillRunning = false; } } finally { synchronized (semaphore) { finished = true; semaphore.notifyAll(); } } }
public void execute() throws BuildException { spoof("begin SpoofTaskContainer execute"); for (Iterator iter = tasks.iterator(); iter.hasNext();) { Task task = (Task) iter.next(); task.perform(); } spoof("end SpoofTaskContainer execute"); }
public void execute() throws BuildException { spoof("begin SpoofTaskContainer execute"); for (Object task1 : tasks) { Task task = (Task) task1; task.perform(); } spoof("end SpoofTaskContainer execute"); }
if (o instanceof Task) { Task task = (Task) o; task.perform(); } else { ((RuntimeConfigurable) o).maybeConfigure(project);
UnknownElement ue = getReplacement(); Task task = ue.getTask(); task.perform(); } else { getProject().fireTaskStarted(this);
private void executeNestedTasks() throws BuildException { try { for (Task task : nestedTasks) { unwrap(task).perform(); } } catch (Exception e) { throw new BuildException(e); } }
for (Task task : nestedTasks) task.perform();
Task task = (Task)i.next(); if (task instanceof SleeJar) ((SleeJar)task).setMetaInfBase(metainfbase); task.perform();
for (Task task : this.tasks) task.perform(); } finally { localProperties.exitScope();
@Override public boolean eval() throws BuildException { LocalProperties localProperties = LocalProperties.get(this.getProject()); localProperties.enterScope(); try { for (Task t : this.nestedTasks) t.perform(); } catch (ExitStatusException ese) { return ese.getStatus() == 0; } catch (BuildException be) { return false; } finally { localProperties.exitScope(); } return true; } }
((Task) task).perform(); } finally {
((Task) task).perform(); } finally {
((Task) task).perform(); } finally {
try { Logging.setLogMessagePrefix(this.getProject(), originalMessagePrefix + "| "); for (Task t : this.nestedTasks) t.perform(); } catch (ExitStatusException ese) {