ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: transform (regexp ?) question
Date Mon, 29 Oct 2001 11:12:14 GMT
Johannes Zellner wrote:

> Hi,
> 
> I'd like to set a property according to the path of the current dir.
> 
> Example:
>     ${user.dir} == /home/joze/jsrc/org/zellner/Fred
> then I'd like to have a property
>     ${myproperty} == org.zellner.Fred
> 
> Is this possible with an ant task ?
> 


This would be something that you could easily code up as a new task and 
then taskdef it for use. Other people may suggestusing script tasks but 
I think you may find it interesting to write the task. It is relative 
simple. Have a go and let us know if you need help.

Conor



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message