ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ant Wiki] Update of "AntSampleFiles/JythonAndAnt" by JürgenHermann
Date Sat, 02 Jul 2005 01:01:42 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ant Wiki" for change notification.

The following page has been changed by JürgenHermann:
http://wiki.apache.org/ant/AntSampleFiles/JythonAndAnt

The comment on the change is:
self bean

------------------------------------------------------------------------------
  
  [[TableOfContents]]
  
- == Description ==
+ == Playing with our "self" ==
+ {{{
+ <!-- fun with our self -->
+ <script taskname="self" language="jython"><![CDATA[if 1:
+     self = bsf.lookupBean('self')
+     print self
+     getters = [
+         'getDescription', 
+         'getLocation', 
+         'getOwningTarget', 
+         'getRuntimeConfigurableWrapper', 
+         'getTaskName', 
+         'getTaskType', 
+         #'getWrapper',
+     ]
+     for getter in getters:
+         print "%s = %s" % (getter, getattr(self, getter)())
+     ]]>
+ </script>
+ }}}
+ 
+ 
+ == Expression evaluation ==
  
  The following build script, import script and python script define the `<eval>`, `<evalcond>`
and `<if>` tasks that provide the full expression power of Jython to Ant scripts.
  
@@ -37, +59 @@

         [if] AssertionError: Only one subelement <then> allowed!
  }}}
  
- == Files ==
- 
  === build.xml ===
  
  inline:build.xml.txt

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


Mime
View raw message