ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Marsili <rsilis...@yahoo.com>
Subject Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'
Date Sun, 17 Sep 2006 21:35:11 GMT
Hi everybody,
I'm really no Ant expert, but I'm working on a project
that might be of interest to this thread. 
It defines an expression language that extends 
Ant's property expansion. At the moment the language 
is limited and is still subject to heavy changes 
(I like to experiment and I'm still learning Java ;-).

Anyway, an expression looks like this

  ${antx.prj getProperty(ant.version)}

which is the equivalent to Java's

  getProject().getProperty("ant.version");

It has some similarities with Lisp but it is also
a macro language:
the folowing function definition

  f=${func${#1}(${_str_}${_str_})}

if called with 

  ${f(Name,str=A)} 

evaluates to the call

  ${funcName(AA)}

So, it is just functions, no class definitions,
inheritance, etc., but it is highly customizable 
and I hope will evolve.

If you're curious have a look at 
http://www.efanomars.net/pf

Stefano Marsili


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message