ant-notifications 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 "AntOddities" by antoine
Date Mon, 13 Jun 2011 10:01:57 GMT
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 antoine:
http://wiki.apache.org/ant/AntOddities?action=diff&rev1=22&rev2=23

  
  === How to import other (non java.*) classes, e.g. Ant´s own classes? ===
  
- 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:
+ 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:
  
  {{{    importClass(Packages.org.apache.tools.ant.types.Path); }}}
  

Mime
View raw message