ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-ant/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional JXPath.java
Date Sat, 28 Dec 2002 23:01:56 GMT
costin      2002/12/28 15:01:56

  Modified:    proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional
                        JXPath.java
  Log:
  Add setting support
  
  Revision  Changes    Path
  1.7       +6 -1      jakarta-ant/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/JXPath.java
  
  Index: JXPath.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/JXPath.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JXPath.java	28 Dec 2002 22:58:24 -0000	1.6
  +++ JXPath.java	28 Dec 2002 23:01:56 -0000	1.7
  @@ -119,7 +119,12 @@
           public boolean setProperty( String ns, String name, Object v, boolean inh,
                                       boolean user, boolean isNew)
           {
  -            return false;
  +            if( ! name.startsWith(PREFIX) )
  +                return false;
  +            name=name.substring( PREFIX.length() );
  +
  +            jxpathCtx.setValue( name, v );
  +            return true;
           }
   
           public Object getPropertyHook( String ns, String name , boolean user) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message