commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wer...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant AntTagSupport.java
Date Thu, 27 Jun 2002 18:17:25 GMT
werken      2002/06/27 11:17:24

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/ant
                        AntTagSupport.java
  Log:
  Hack to get around the fact that we don't have the javabean Object task
  but rather the TaskAdapter, so we have to unwrap.
  
  Revision  Changes    Path
  1.5       +8 -4      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/AntTagSupport.java
  
  Index: AntTagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/AntTagSupport.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AntTagSupport.java	25 Jun 2002 20:43:30 -0000	1.4
  +++ AntTagSupport.java	27 Jun 2002 18:17:24 -0000	1.5
  @@ -196,6 +196,10 @@
           if ( obj == null ) {
               return;
           }
  +
  +        if ( obj instanceof TaskAdapter ) {
  +            obj = ((TaskAdapter)obj).getProxy();
  +        }
           
           IntrospectionHelper ih = IntrospectionHelper.getHelper( obj.getClass() );
   
  
  
  

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


Mime
View raw message