Dear Wiki user,

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

The "AntOddities" page has been changed by DavidCarp:
http://wiki.apache.org/ant/AntOddities?action=diff&rev1=21&rev2=22

  
  === How to import other (non java.*) classes, e.g. Ant´s own classes? ===
  
- The answer to this is described on the 
[[http://www.mozilla.org/rhino/|homepage]] of the javascript interpreter, but 
very hidden (I think). Following the links "Documentation" and "Scripting Java" 
you´ll get some examples. Inside them it is written: ''"If you wish to load 
classes from JavaScript that aren't in the java package, you'll need to prefix 
the package name with "''Packages''". For example ..."''. Transfered to you 
script task that would be:
+ The answer to this is described on the  [[http://www.pbali.com|bali villas]] 
of the javascript interpreter, but very hidden (I think). Following the links 
"Documentation" and "Scripting Java" you´ll get some examples. Inside them it 
is written: ''"If you wish to load classes from JavaScript that aren't in the 
java package, you'll need to prefix the package name with "''Packages''". For 
example ..."''. Transfered to you script task that would be:
  
  {{{    importClass(Packages.org.apache.tools.ant.types.Path); }}}
  

Reply via email to