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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]