Browse Source

Update task to reflect new location of property resolving

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269295 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
697cacf736
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java

+ 6
- 3
proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java View File

@@ -19,6 +19,8 @@ import org.apache.myrmidon.converter.ConverterException;
import org.apache.myrmidon.components.configurer.Configurer; import org.apache.myrmidon.components.configurer.Configurer;
import org.apache.myrmidon.components.converter.MasterConverter; import org.apache.myrmidon.components.converter.MasterConverter;
import org.apache.myrmidon.components.executor.Executor; import org.apache.myrmidon.components.executor.Executor;
import org.apache.avalon.excalibur.property.PropertyException;
import org.apache.avalon.excalibur.property.PropertyUtil;


/** /**
* This is the class that Task writers should extend to provide custom tasks. * This is the class that Task writers should extend to provide custom tasks.
@@ -58,7 +60,8 @@ public abstract class AbstractContainerTask
{ {
try try
{ {
final Object object = getContext().resolveValue( value );
final Object object =
PropertyUtil.resolveProperty( value, getContext(), false );


if( null == object ) if( null == object )
{ {
@@ -68,9 +71,9 @@ public abstract class AbstractContainerTask


return object; return object;
} }
catch( final TaskException te )
catch( final PropertyException pe )
{ {
throw new ConfigurationException( "Error resolving value: " + value, te );
throw new ConfigurationException( "Error resolving value: " + value, pe );
} }
} }




Loading…
Cancel
Save