RE: any way to do this with Ant?

2008-11-17 Thread Lucas Albers
Catch try task for ant: -

Re: ANT replaceregexp problem

2008-11-17 Thread Jerry Chimey
Hi, Brian: You are right. After setting the file.encoding, it is working for now. I agree with you that this is not a good solution for XML replacement. I am going to try XML Task or XSLT to do this type of work. Thanks again. Jerry From: Brian Agnew <[

RE: AW: AW: token filtering

2008-11-17 Thread Ben Tu
I will have it ready for you today. Testing it -Original Message- From: Mark Salter [mailto:[EMAIL PROTECTED] Sent: Sunday, November 16, 2008 2:47 AM To: Ant Users List Subject: Re: AW: AW: token filtering Rez wrote: > That's what we really need, more examples. Some > of the current e

AW: Setting a global property in a target. Possible?

2008-11-17 Thread Jan.Materne
>But I had to find out that properties set inside a are >not valid outside of said target. 1. Is the target really executed? Maybe an if/unless skips the execution. 2. If you run a target with a new project instance is created and the properties are set there. The calling project hasnt any a

Re: ANT replaceregexp problem

2008-11-17 Thread Brian Agnew
Your XML file specifies the char encoding being used (UTF-8), but I'm guessing that the replaceregexp task won't understand this, since it's not XML-aware. So your replacement string may be getting written out using another encoding - most likely your default environment encoding. Try setting -Dfi

AW: Setting a global property in a target. Possible?

2008-11-17 Thread Knuplesch, Juergen
You are right: Properties are immutable! Your problem seems to be a different one: If you do not run the target, the property wont be set. Make sure you set the property in a task that is called before you use it elsewhere. -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Al

Setting a global property in a target. Possible?

2008-11-17 Thread Alexander Ziller
Hi I'm trying to set a property inside a target. In the definition of ant properties, it is said that they are immutable. "Beeing set once, they cannot be reset again". But I had to find out that properties set inside a are not valid outside of said target. Is this intended and if so, are there