| Author |
terminating a jva program based upon certain condititons
|
Gary Dwivdi
Greenhorn
Joined: Sep 12, 2011
Posts: 9
|
|
Hi ,
I have a requirement where in I need to terminate a java program(the program reads a file) on encountering a word in the file.I can not use System.exit (1); as it will shut down the server itself.so i need another method to do this.Please help me with this
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8436
|
|
Some more information please.
What is the relation between this "program" and "server"
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Gary Dwivdi
Greenhorn
Joined: Sep 12, 2011
Posts: 9
|
|
I'm using an ANT script which is calling the java class.and this ANT script is being run on HUDSON a Continous Integration tool.So if i use System.exit();,the Hudson server goes off.
|
 |
 |
|
|
subject: terminating a jva program based upon certain condititons
|
|
|