Re: trying to commit not up-to-date files doesn't make the build fail

2012-04-06 Thread Maxime CARPENTIER
Yes the exit code is != 0, so the command should fail. I'm sure i'm doing something wrong here, i'll keep looking for my mistake thanxs for your help, Max On 2012-04-05, Maxime CARPENTIER wrote: > yes sorry i forgot to mention the failonerror attribute is set to true but > it still doesn't fai

Re: trying to commit not up-to-date files doesn't make the build fail

2012-04-05 Thread Stefan Bodewig
On 2012-04-05, Maxime CARPENTIER wrote: > yes sorry i forgot to mention the failonerror attribute is set to true but > it still doesn't fail Well, it's been quite some time since I last used CVS, so I'm not sure about the details and don't have any CVS repo around to test. Ant will fail if "cvs

Re: trying to commit not up-to-date files doesn't make the build fail

2012-04-05 Thread Maxime CARPENTIER
Hi Stefan, yes sorry i forgot to mention the failonerror attribute is set to true but it still doesn't fail Max On 2012-04-05, Maxime CARPENTIER wrote: > this command works well except for one thing : it doesn't fail if someone > else changes and commit files i want to commit just before th

Re: trying to commit not up-to-date files doesn't make the build fail

2012-04-05 Thread Stefan Bodewig
On 2012-04-05, Maxime CARPENTIER wrote: > this command works well except for one thing : it doesn't fail if someone > else changes and commit files i want to commit just before the command > commit : [snip] > Only a "commit aborted" message shows off, but the build stays > successful... Does it

trying to commit not up-to-date files doesn't make the build fail

2012-04-05 Thread Maxime CARPENTIER
Hello list, i'm having trouble using the cvs commit command via ant : this command works well except for one thing : it doesn't fail if someone else changes and commit files i want to commit just before the command commit : [cvs] cvs commit: Examining . [cvs] cvs commit: Up-to-d

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: 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: 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: 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: Build fail

2009-11-23 Thread glenn opdycke-hansen
I agree that there is nothing obviously incorrect. However, do you run unit tests and acceptance tests at the same time? If so then there is a potential problem that the script will run the unit tests then the acceptance tests then check the properties. I suggest that the not be used, instead hav

Re: Build fail

2009-11-23 Thread Greg Roodt
I cant see anything obviously wrong there, but my test targets are normally a bit simpler. Have you tried setting the failure properties on "batchtest" rather than the "junit" task? Something weird may be happening because you are forking in "batchtest". On Mon, Nov 23, 2009 at 6:43 PM, Ben Cuth

Re: Build fail

2009-11-23 Thread Ben Cuthbert
Here it is haltonfailure="no" haltonerror="no" failureproperty="tests.failures" errorproperty="tests.errors"

Re: Build fail

2009-11-22 Thread Greg Roodt
Could you please paste the entire Ant "test" target you are using? You would definitely need to be checking for the error property, since its not a test failure, thats an error. On Sat, Nov 21, 2009 at 6:25 PM, Ben Cuthbert wrote: > What I have is the the following > >   haltonfailure="no" h

Re: Build fail

2009-11-21 Thread Ben Cuthbert
What I have is the the following haltonfailure="no" haltonerror="no" failureproperty="tests.failures" errorproperty="tests.errors" > On 21 Nov 2009, at 18:20, glenn opdycke-

Re: Build fail

2009-11-21 Thread glenn opdycke-hansen
it appears that the name of the property being set is different than what is being checked: On Sat, Nov 21, 2009 at 12:12, Ben Cuthbert wrote: > Strange thing is, if I set this property in the top of the file > > > > And then in my target put > > > > I get and error > > build-common.xml:347:

Re: Build fail

2009-11-21 Thread Ben Cuthbert
Strange thing is, if I set this property in the top of the file And then in my target put I get and error build-common.xml:347: Test failed!!! On 21 Nov 2009, at 16:33, Ben Cuthbert wrote: Yes so I have the following line in the same target at the end, I see the unit test error but th

Re: Build fail

2009-11-21 Thread Ben Cuthbert
I set those and nothing, still unit test fails but the build passes. In the verbose log I just see [junit] 'filtertrace=true' [junit] 'haltOnError=false' [junit] 'haltOnFailure=false' [junit] 'showoutput=false' [junit] 'formatter =org.apache.tools.ant.taskdefs.optional.jun

Re: Build fail

2009-11-21 Thread glenn opdycke-hansen
What if you change the halton* to "no" ? I would run it with verbose set on in order to get more details. --glenn On Sat, Nov 21, 2009 at 02:43, Ben Cuthbert wrote: > failureproperty="tests.failures" errorproperty="tests.errors"> >

Re: Build fail

2009-11-21 Thread Ben Cuthbert
Strange thing is, if I set this property in the top of the file And then in my target put I get and error build-common.xml:347: Test failed!!! On 21 Nov 2009, at 16:33, Ben Cuthbert wrote: Yes so I have the following line in the same target at the end, I see the unit test error but th

Re: Build fail

2009-11-21 Thread Ben Cuthbert
Yes so I have the following line in the same target at the end, I see the unit test error but the build does not stop On 21 Nov 2009, at 10:05, Greg Roodt wrote:

Re: Build fail

2009-11-21 Thread Greg Roodt
Are you picking up your tests.failures property somewhere to fail the build? e.g. On Sat, Nov 21, 2009 at 8:43 AM, Ben Cuthbert wrote: > When one of my unit tests fail the build is still successful. But in my ant > config I have the following > > failureproperty="tests.failures" errorpropert

Build fail

2009-11-21 Thread Ben Cuthbert
When one of my unit tests fail the build is still successful. But in my ant config I have the following failureproperty="tests.failures" errorproperty="tests.errors">

Re: Knowing the build fail status of ant in batch script

2006-07-11 Thread Jeffrey E Care
Please do not use the Ant user mailing list for personal correspondence. Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer

Re: Knowing the build fail status of ant in batch script

2006-07-11 Thread ilango
Hi Venkatesh I have a friend called Venkatesh babu and he is from bangalore. Just wondering if you were the person I know Venkatesh Babu <[EMAIL PROTECTED]> wrote: Hello All, I'm calling an ant target from within my batch script as follows: cmd/C ant -f mailer.xml sendmail My problem is that i

Knowing the build fail status of ant in batch script

2006-07-11 Thread Venkatesh Babu
Hello All, I'm calling an ant target from within my batch script as follows: cmd/C ant -f mailer.xml sendmail My problem is that if the sendmail target fails, I have to stop execution of my batch script. For that I tried adding the following statement after the ant call: if %ERRORLEVEL% != 0 go

Re: Ant 1.6.1 Build fail on Mac OX X 10.3.2 (G5)

2004-03-01 Thread Antoine Lévy-Lambert
Try : ./bootstrap.sh ./build.sh install-lite you are probably hit by remnants of older versions of ant in the bootstrap dir. Cheers, Antoine Hugh Field-Richards wrote: Hi I am upgrading from 1.5.3 and am having a few problems. I get the following failure when I try to build the 1.6.1 source o

Ant 1.6.1 Build fail on Mac OX X 10.3.2 (G5)

2004-03-01 Thread Hugh Field-Richards
Hi I am upgrading from 1.5.3 and am having a few problems. I get the following failure when I try to build the 1.6.1 source on a Dual G5 running OS X 10.3.2. apache-ant-1.6.1 > ./build.sh install-lite ... Bootstrapping Ant Distribution ... Compiling Ant Classes Note: Some input files use or overri