svn commit: rev 22838 - avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks

[email protected]
Newsgroups gmane.comp.jakarta.avalon.cvs
Message-ID <[email protected]>
Author: mcconnell
Date: Mon Jul 12 03:35:48 2004
New Revision: 22838

Modified:
   avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/PropertyTask.java
Log:
Update property task to expose "path" feature.

Modified: avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/PropertyTask.java
==============================================================================
--- avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/PropertyTask.java	(original)
+++ avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/tasks/PropertyTask.java	Mon Jul 12 03:35:48 2004
@@ -60,6 +60,11 @@
         m_property = property;
     }
 
+    public void setName( final String property )
+    {
+        m_property = property;
+    }
+
     public void execute() throws BuildException 
     {
         if( null == m_key )
@@ -114,6 +119,10 @@
         else if( m_feature.equals( "uri" ) )
         {
             return resource.getInfo().getURI();
+        }
+        else if( m_feature.equals( "path" ) )
+        {
+            return resource.getInfo().getPath();
         }
         else if( m_feature.equals( "spec" ) )
         {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.