ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Zellner <johan...@zellner.org>
Subject javascript regexp
Date Mon, 05 Nov 2001 17:44:44 GMT
Hi,

how can I use javascript regexp's in ant <script> tags ?
I'd be especially interested in something like

    var userdir = project.getProperty('user.dir');
    var source = project.getProperty('user.home');
    var dest = userdir.replace(source, '');
    project.setProperty('dest', dest);

but that didn't work. I also tried:

    var source = RegExp(project.getProperty('user.home'));

but also w/o success.

Any help much appreciated.

-- 
   Johannes

--
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