Browse Source

Change to throw context exception as lack of value in context is the reason for PropertyException.

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

+ 2
- 2
proposal/myrmidon/src/java/org/apache/myrmidon/framework/Condition.java View File

@@ -42,7 +42,7 @@ public class Condition
}

public boolean evaluate( final Context context )
throws TaskException
throws ContextException
{
boolean result = false;

@@ -66,7 +66,7 @@ public class Condition
}
catch( final PropertyException pe )
{
throw new TaskException( "Error resolving " + m_condition, pe );
throw new ContextException( "Error resolving " + m_condition, pe );
}

if( !m_isIfCondition )


Loading…
Cancel
Save