ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Ant String replace
Date Fri, 12 Jan 2007 08:21:21 GMT
If <basedir> does not work for you, I dont see any other way without external libs ...
Oh - yes: <script> on Java6 ...

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Joe Eugene [mailto:eugene.joe@gmail.com] 
>Gesendet: Donnerstag, 11. Januar 2007 17:10
>An: Ant Users List
>Betreff: Re: Ant String replace
>
>Is there a way to do this with just ANT (no other libs).
>
>The reason for this, is we have to change our process to 
>include "antcontrib".
>
>Thanks,
>Joe
>
>
>On 1/10/07, Jan.Materne@rzf.fin-nrw.de 
><Jan.Materne@rzf.fin-nrw.de> wrote:
>> <antcontrib:propertyregexp>
>> <basedir>
>>
>> Jan
>>
>> >-----Urspr√ľngliche Nachricht-----
>> >Von: Joe Eugene [mailto:eugene.joe@gmail.com]
>> >Gesendet: Mittwoch, 10. Januar 2007 03:56
>> >An: user@ant.apache.org
>> >Betreff: Ant String replace
>> >
>> >Probably very basic question, but cant file the answer.
>> >
>> >I need to replace strings, not in file, just simple string.
>> >
>> >String x = "This is a new String";
>> >
>> >String y = x.replace("String", "Text");
>> >
>> >How do you replace the strings in properties?
>> >
>> >An alternate solution to my problem would be find the Last folder 
>> >Name in the Current Path.
>> >
>> >i..e Path = "c:\dir1\dir2\dir3"
>> >
>> >If basedir is dir3, how can find the name of the folder before it? 
>> >i.e. dir2?
>> >
>> >Appreciate your help.
>> >
>> >Thanks,
>> >Joe
>> >
>> 
>>---------------------------------------------------------------------
>> >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>> >additional commands, e-mail: user-help@ant.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional 
>> commands, e-mail: user-help@ant.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message