You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by we...@apache.org on 2002/06/27 23:08:08 UTC
cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant AntTag.java
werken 2002/06/27 14:08:08
Modified: jelly/src/java/org/apache/commons/jelly/tags/ant AntTag.java
Log:
Sometimes, it's not an AntTag, but just an AntTagSupport/TaskTag.
Revision Changes Path
1.2 +13 -3 jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/AntTag.java
Index: AntTag.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/AntTag.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AntTag.java 27 Jun 2002 14:16:24 -0000 1.1
+++ AntTag.java 27 Jun 2002 21:08:08 -0000 1.2
@@ -186,7 +186,7 @@
}
else {
- //log.info( "Setting datatype/nested object of name: " + tagName );
+ // System.err.println( "Setting datatype/nested object of name: " + tagName );
// must be a datatype.
AntTag ancestor = (AntTag) findAncestorWithClass( AntTag.class );
@@ -196,6 +196,16 @@
if ( ancestor != null ) {
nested = ancestor.createNestedObject( tagName );
}
+ else
+ {
+ // System.err.println( "No ancestor" );
+
+ AntTagSupport ancestorToo = (AntTagSupport) findAncestorWithClass( AntTagSupport.class );
+
+ if ( ancestorToo != null ) {
+ nested = ancestorToo.createNestedObject( tagName );
+ }
+ }
if ( nested == null ) {
nested = createDataType( tagName );
@@ -290,7 +300,7 @@
}
public void setBeanProperty(Object object, String name, Object value) throws Exception {
- //log.info( "Setting bean property on: "+ object + " name: " + name + " value: " + value );
+ // System.err.println( "Setting bean property on: "+ object + " name: " + name + " value: " + value );
IntrospectionHelper ih = IntrospectionHelper.getHelper( object.getClass() );
@@ -408,4 +418,4 @@
return task;
}
-}
\ No newline at end of file
+}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>