Browse Source

Add a new method "resolveValue" to TaskContext that resolves values according to ant rules and using that particular context.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270513 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
07f15736a0
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      proposal/myrmidon/src/java/org/apache/myrmidon/api/TaskContext.java

+ 12
- 0
proposal/myrmidon/src/java/org/apache/myrmidon/api/TaskContext.java View File

@@ -60,6 +60,18 @@ public interface TaskContext
File resolveFile( String filename ) File resolveFile( String filename )
throws TaskException; throws TaskException;


/**
* Resolve a value according to the context.
* This involves evaluating the string and thus removing
* ${} sequences according to the rules specified at
* ............
*
* @param value the value to resolve
* @return the resolved value
*/
Object resolveValue( String value )
throws TaskException;

/** /**
* Retrieve property for name. * Retrieve property for name.
* *


Loading…
Cancel
Save