Re: return early from a macrodef?

2006-11-10 Thread Jacob Kjome
At 04:38 PM 11/10/2006, you wrote: >Jake: Why [can't you/are you reluctant to] use target >dependencies to do this as opposed to macros? > Hi Matt, Please read [1] (see below). For further explanation, In my generic core build file, I call the macrodef. I don't want the generic build file ha

Re: return early from a macrodef?

2006-11-10 Thread Matt Benson
Jake: Why [can't you/are you reluctant to] use target dependencies to do this as opposed to macros? br, Matt --- Jacob Kjome <[EMAIL PROTECTED]> wrote: > Quoting John Norvell <[EMAIL PROTECTED]>: > > > https://sourceforge.net/projects/antcontrib/ > extension library has the > > task that uses

Re: return early from a macrodef?

2006-11-10 Thread Jacob Kjome
Quoting John Norvell <[EMAIL PROTECTED]>: > https://sourceforge.net/projects/antcontrib/ extension library has the > task that uses conditions. Would you be able to use that? > Curiously enough, the whole point of needing to be able to do this is to bootstrap ant-contrib without requiring it t

Re: return early from a macrodef?

2006-11-10 Thread John Norvell
https://sourceforge.net/projects/antcontrib/ extension library has the task that uses conditions. Would you be able to use that? -J Jacob Kjome wrote: In a macrodef, if I check a condition and that condition is true, I'd like to return early from the macrodef and not run any of the rest of

return early from a macrodef?

2006-11-10 Thread Jacob Kjome
In a macrodef, if I check a condition and that condition is true, I'd like to return early from the macrodef and not run any of the rest of its contents. Is it possible using a to write a script that can force an early return from the part of the macrodef if the condition is met? This is kind

RE: propertyregex regexp construct question

2006-11-10 Thread bill/wilandra
The following reg ex should work for you: [^-]*-[^-]*-(.*) You will need to adjust it so it works in by adding appropriate escapes. I use the RegexCoach tool to check reg exs. It is available from http://weitz.de/regex-coach. HTH Bill -Original Message- From: Rémon van Gijn [mailto:[EM

Re: propertyregex regexp construct question

2006-11-10 Thread Scot P. Floess
Rémon: Set regexp = "([^-]+)-([^-]+)(-(.*))" and select = "\3" This assumes a pattern where you have some chars, a dash, some more chars and then a final dash... Scot Rémon van Gijn wrote: Hi I want to use the propertyregex (ant-contrib) to lean up a string: PCS-VARIABLEAPPNAME-2.8.3-85

propertyregex regexp construct question

2006-11-10 Thread Rémon van Gijn
Hi I want to use the propertyregex (ant-contrib) to lean up a string: PCS-VARIABLEAPPNAME-2.8.3-85 Basically I want to strip all until the second '-', so that '-2.8.3-85' remains. Could anyone give me a hand with the regexp and select? thanks, Remon

performance question

2006-11-10 Thread Matteo Centonza
Hi, i'm using ant in my production system. Ant is a core part of the system and its codebase is svn synchronized on every full rebuild (so is more or less up to date). While profiling my application and i've found out some somewhat surprising results (jdk 1.5.0-b09 32/64 bit, but the same with 1.