AW: Help needed for Appache ANT

2009-11-24 Thread Jan.Materne
Your failure was thinking in "variables" not in "Ant properties". Later are immutable - once set they cannot change. (exception: ) Jan >-Ursprüngliche Nachricht- >Von: Scot P. Floess [mailto:sflo...@nc.rr.com] >Gesendet: Dienstag, 24. November 2009 22:19 >An: Ant Users List >Betreff: Re:

Re: Help needed for Appache ANT

2009-11-24 Thread Scot P. Floess
Sorry, you will probably need to use 2 properties for each call to dirname... On Tue, 24 Nov 2009, Scot P. Floess wrote: You can run dirname task twice... First dirname will cut out four, the second dirname will cut out three... On Tue, 24 Nov 2009, jhudson wrote: Hi I have below re

Re: Help needed for Appache ANT

2009-11-24 Thread Scot P. Floess
You can run dirname task twice... First dirname will cut out four, the second dirname will cut out three... On Tue, 24 Nov 2009, jhudson wrote: Hi I have below requirement in ANT:- variable1 = ${basedir} now let us say from above statement "variable1" got the value C:\one\two\three\four

Help needed for Appache ANT

2009-11-24 Thread jhudson
Hi I have below requirement in ANT:- variable1 = ${basedir} now let us say from above statement "variable1" got the value C:\one\two\three\four now i want to cut two levels from above path (so "C:\one\two" will be the result after cut) and i want to reassign the value to varibale1. So, if

Re: Build fail

2009-11-24 Thread Ben Cuthbert
If only i had listened :) Thank you for your help all working perfectly. On 24 Nov 2009, at 19:49, Greg Roodt wrote: batchtest - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-

Re: Killing Ant process through shell script when multiple Java processes are running...

2009-11-24 Thread Brian Pontarelli
It will depend on the OS that you are running and grabbing the PID. In most unix systems, the PID of the last executed process is in the variable $!. You can store this in a file for later retrieval if necessary. You can also add a very specific -D property and then use a combination of the ps,

Re: Build fail

2009-11-24 Thread Greg Roodt
Ready to try my suggestion? Have you tried setting the failure properties on "batchtest" rather than the "junit" task? On Tue, Nov 24, 2009 at 7:47 PM, Ben Cuthbert wrote: > I see. And yes it is firing them now. But I am back to the old problem that > the build does not fail when there is an e

Re: Build fail

2009-11-24 Thread Ben Cuthbert
I see. And yes it is firing them now. But I am back to the old problem that the build does not fail when there is an error

Re: Build fail

2009-11-24 Thread Greg Roodt
Ant has resolved your variables references. Your "if" should look like this: On Tue, Nov 24, 2009 at 7:32 PM, Ben Cuthbert wrote: > Yes I got the following error running in debug > > test-unit: > Skipped because property 'true' not set. > > > ant build -Dunit.test=true -verbose > > What is th

Re: Build fail

2009-11-24 Thread Ben Cuthbert
Yes I got the following error running in debug test-unit: Skipped because property 'true' not set. ant build -Dunit.test=true -verbose What is the property true On 24 Nov 2009, at 14:42, glenn opdycke-hansen wrote: Suggest that you run in verbose mode. i suspect that the target could be

Re: problem with Excludes in the Ant.

2009-11-24 Thread David Weintraub
You might have better luck if you use the and as subclauses. It makes it easier to see what you're doing: [] You realize that excludes actually override your includes in this manner? That is, *.java files in **/xpush/**" will be excluded. Is this what

Re: Killing Ant process through shell script when multiple Java processes are running...

2009-11-24 Thread Scot P. Floess
what about pkill on the ant process itself? On Tue, 24 Nov 2009, Harry_ wrote: Hello, I want to schedule a task using ant using crontab. On shell script will start the ant and the task I want to run. This is easy. One shell script will kill the above ant process. But the problem is that m

Killing Ant process through shell script when multiple Java processes are running...

2009-11-24 Thread Harry_
Hello, I want to schedule a task using ant using crontab. On shell script will start the ant and the task I want to run. This is easy. One shell script will kill the above ant process. But the problem is that multiple java processes are running on machine. I only want to kill only the ant pro

Re: Regular expression in

2009-11-24 Thread Scot P. Floess
So, problem solved? Or still unresolved? On Tue, 24 Nov 2009, durbans wrote: Sorry, I was wrong. -- View this message in context: http://old.nabble.com/Regular-expression-in-%3Cpropertyregex%3E-tp26498126p26498505.html Sent from the Ant - Users mailing list archive at Nabble.com. ---

Re: Regular expression in

2009-11-24 Thread durbans
Sorry, I was wrong. -- View this message in context: http://old.nabble.com/Regular-expression-in-%3Cpropertyregex%3E-tp26498126p26498505.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-m

Re: Regular expression in

2009-11-24 Thread Scot P. Floess
Are you sure INPUT_TEXT is set? I've used propertyregex with properties and it never took the string literal of the property name, curly braces and $ sign... You might echo INPUT_TEXT before the call to propertyregex to ensure you are, in fact, setting that property... On Tue, 24 Nov 2009,

Re: Regular expression in

2009-11-24 Thread durbans
durbans wrote: > > input="${INPUT_TEXT}" > regexp="" > select="\2" > casesensitive="true" /> > > Sorry I found that I have a bit different problem : How can I use a variable in input parameter ? It seems that if I write http://old.nabble.

Re: how to install package to make ANT aware?

2009-11-24 Thread Chris Marks
I believe cobertura has a third level version. I think the latest version is 1.9.2. As a note, I have been starting to use the website http://www.jarvana.com to search for dependencies. It's pretty useful if you know the library you want and when you click on the information link, it will give y

Regular expression in

2009-11-24 Thread durbans
I have a string on more lines, like: AAA THIS IS A A CCSTRINGCCC TODAY CC D GREP ME NOW DD I want to "grep" with ANT propertyregex the word "TODAY". What should i put on regexp field to extract the word TODAY ? I want to IGNORE every character

Re: Build fail

2009-11-24 Thread glenn opdycke-hansen
Suggest that you run in verbose mode. i suspect that the target could be the cause. -glenn

Re: Regular expression for deleting new lines with Ant

2009-11-24 Thread christoforever
That's exactly what I ended up using. I cross-posted this on stack overflow and someone gave me the idea their as well. I'm still curious about why replaceregexp is not noticing the "\n' character. One day when I have the time I will look into it a bit more. foamdino wrote: > > Hi, > > I just

Re: Build fail

2009-11-24 Thread Benjamin Cuthbert
Strange if i put in the changes as you suggested it does not even execute my targets. If I run the following on the command line ant build -Dunit.test=true On Monday, November 23, 2009, at 09:52PM, "glenn opdycke-hansen" wrote: >I agree that there is nothing obviously incorrect. However, do

Re: Regular expression for deleting new lines with Ant

2009-11-24 Thread Kevin Jackson
Hi, I just had to strip blank lines from a file the other day, try this: http://ant.apache.org/manual/CoreTypes/filterchain.html#linetokenizer Kev - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional command