Gilbert Rebhan schrieb:
[EMAIL PROTECTED] schrieb:
Hello everybody,

I am running a forked <java> task as part of my ant job using the following
<java classname="path.to.class" fork="true" failonerror="true"
dir="${config}"> arguments. When I run the job, ant ends with "BUILD
SUCCESSFULL" even if there was an exception raised in the forked task. But
I would need the job to end with an error code. Has anybody ever come
across this problem?


try with explicitly System.exit(some int != 0), f.e.

...
try {
    foobar()
} catch (Exception exc {
    System.exit(1)
}
...

replace with =

use an explicit System.exit(some int != 0) in your class, f.e.

...
try {
    foobar()
} catch (Exception exc {
    System.exit(1)
}
...

Regards, Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to