[Ant Wiki] Update of "AntSampleFiles/JythonAndAnt" by J ürgenHermann

2005-07-03 Thread Apache Wiki
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

--
  
  If you run `ant` after you saved all three files to a directory, you'll get 
output similar to this:
  {{{
- jython.home='D:\\jython-2.1'
- [jyant-info] name = 'jyant'
- [jyant-info] ant env = {'__name__': 'main', ...}
- [jyant-info] modules = {..., 'jyant': , ...}
   [echo] dummy1 = no dot
   [echo] dummy2 = no .
   [echo] foobar = foo
@@ -47, +43 @@

   [echo] false = 0
   [echo] life = universe
   [echo] life2 = everything
-  [echo] nolife = ${nolife}
+  [echo] undefined = ${undefined}
-  [echo] empty = 'true'
+  [echo] must_be_true = 'true'
   [echo] TRUE! (OK)
   [echo] FALSE! (OK)
   [echo] TRUE! (OK)
-  [echo] Now cheching subelement assertion...
+  [echo] Now cheching child element assertion...
 [if] Traceback (innermost last):
-[if]   File "", line 6, in ?
+[if]   File "", line 250, in ?
+[if]   File "", line 246, in dispatch
-[if]   File "jyant.py", line 99, in execute
+[if]   File "", line 198, in execute
-[if] AssertionError: Only one subelement  allowed!
+[if] AssertionError: Only one child element  allowed!
  }}}
  
  === build.xml ===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Ant Wiki] Update of "AntSampleFiles/JythonAndAnt" by J ürgenHermann

2005-07-01 Thread Apache Wiki
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

--
   [echo] life2 = everything
   [echo] nolife = ${nolife}
   [echo] empty = 'true'
-  [echo] number! (OK)
+  [echo] TRUE! (OK)
   [echo] FALSE! (OK)
   [echo] TRUE! (OK)
   [echo] Now cheching subelement assertion...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Ant Wiki] Update of "AntSampleFiles/JythonAndAnt" by J ürgenHermann

2005-07-01 Thread Apache Wiki
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" ==
+ {{{
+ 
+ 
+ 
+ }}}
+ 
+ 
+ == Expression evaluation ==
  
  The following build script, import script and python script define the 
``, `` and `` tasks that provide the full expression power 
of Jython to Ant scripts.
  
@@ -37, +59 @@

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Ant Wiki] Update of "AntSampleFiles/JythonAndAnt" by J ürgenHermann

2005-07-01 Thread Apache Wiki
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

New page:
#prgam section-numbers 2

= Using Jython scripting with Ant =

[[TableOfContents]]

== Description ==

The following build script, import script and python script define the 
``, `` and `if` tasks that provide the full expression power of 
Jython to Ant scripts.

If you run `ant` after you saved all three files to a directory, you'll get 
output similar to this:
{{{
jython.home='D:\\jython-2.1'
[jyant-info] name = 'jyant'
[jyant-info] ant env = {'__name__': 'main', ...}
[jyant-info] modules = {..., 'jyant': , ...}
 [echo] dummy1 = no dot
 [echo] dummy2 = no .
 [echo] foobar = foo
 [echo] number+5 = 42
 [echo] 5+number = 42
 [echo] true = 1
 [echo] false = 0
 [echo] life = universe
 [echo] life2 = everything
 [echo] nolife = ${nolife}
 [echo] empty = 'true'
 [echo] number! (OK)
 [echo] FALSE! (OK)
 [echo] TRUE! (OK)
 [echo] Now cheching subelement assertion...
   [if] Traceback (innermost last):
   [if]   File "", line 6, in ?
   [if]   File "jyant.py", line 99, in execute
   [if] AssertionError: Only one subelement  allowed!
}}}

== Files ==

=== build.xml ===

inline:build.xml.txt

=== jyant.xml ===

inline:jyant.xml.txt

=== jyant.py ===

inline:jyant.py

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]