Browse Source

Use Adaptor so that TaskContext appears as an Avalon Context

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271477 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
1674577675
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/DefaultExecutor.java

+ 3
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/DefaultExecutor.java View File

@@ -24,6 +24,7 @@ import org.apache.myrmidon.interfaces.executor.ExecutionFrame;
import org.apache.myrmidon.interfaces.executor.Executor; import org.apache.myrmidon.interfaces.executor.Executor;
import org.apache.myrmidon.interfaces.type.TypeException; import org.apache.myrmidon.interfaces.type.TypeException;
import org.apache.myrmidon.interfaces.type.TypeFactory; import org.apache.myrmidon.interfaces.type.TypeFactory;
import org.apache.myrmidon.interfaces.configurer.TaskContextAdapter;


/** /**
* The basic executor that just executes the tasks. * The basic executor that just executes the tasks.
@@ -97,11 +98,12 @@ public class DefaultExecutor


protected final void doConfigure( final Task task, protected final void doConfigure( final Task task,
final Configuration taskModel, final Configuration taskModel,
final TaskContext context )
final TaskContext taskContext )
throws TaskException throws TaskException
{ {
try try
{ {
final TaskContextAdapter context = new TaskContextAdapter( taskContext );
m_configurer.configure( task, taskModel, context ); m_configurer.configure( task, taskModel, context );
} }
catch( final Throwable throwable ) catch( final Throwable throwable )


Loading…
Cancel
Save