Add System.exit() handling.

This commit is contained in:
giberta1 2002-05-06 09:51:49 +00:00
parent 930b2f46cc
commit 781932ee0c

View File

@ -1,7 +1,7 @@
// $RCSfile: MQSSave.java,v $ // $RCSfile: MQSSave.java,v $
// $Revision: 1.4 $ // $Revision: 1.5 $
// $Name: $ // $Name: $
// $Date: 2002/05/03 17:12:58 $ // $Date: 2002/05/06 09:51:49 $
// $Author: giberta1 $ // $Author: giberta1 $
/* /*
@ -708,6 +708,8 @@ public class MQSSave
{ {
System.out.println( "Usage: MQSSave [-mb \"message_break\"] [-tisbm [-ffn <Flush_File_Name>]] <Output_File_Name> <Input_MsgQueue_Name>"); System.out.println( "Usage: MQSSave [-mb \"message_break\"] [-tisbm [-ffn <Flush_File_Name>]] <Output_File_Name> <Input_MsgQueue_Name>");
System.out.println( " Default: Message Break: (" + Str_UnFormat( Message_Break) + ") TI Swift Batch Mode: (" + TI_Swift_Batch_Mode + ") Flush File Name: (" + Flush_File_Name + ")"); System.out.println( " Default: Message Break: (" + Str_UnFormat( Message_Break) + ") TI Swift Batch Mode: (" + TI_Swift_Batch_Mode + ") Flush File Name: (" + Flush_File_Name + ")");
System.exit( 1);
} }
else else
{ {
@ -788,6 +790,8 @@ public class MQSSave
MQSDeInit(); MQSDeInit();
System.out.println( "MQS Save Completed !"); System.out.println( "MQS Save Completed !");
System.exit( 0);
} }
} }
@ -795,6 +799,8 @@ public class MQSSave
{ {
System.out.println("Exception: (" + Expt + ") !"); System.out.println("Exception: (" + Expt + ") !");
Expt.printStackTrace(); Expt.printStackTrace();
System.exit( 1);
} }
} }