Add System.exit() handling.
This commit is contained in:
parent
7187b8e088
commit
0ffc88e129
10
MQSLoad.java
10
MQSLoad.java
@ -1,7 +1,7 @@
|
|||||||
// $RCSfile: MQSLoad.java,v $
|
// $RCSfile: MQSLoad.java,v $
|
||||||
// $Revision: 1.5 $
|
// $Revision: 1.6 $
|
||||||
// $Name: $
|
// $Name: $
|
||||||
// $Date: 2002/05/02 17:09:35 $
|
// $Date: 2002/05/06 09:52:24 $
|
||||||
// $Author: giberta1 $
|
// $Author: giberta1 $
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -510,6 +510,8 @@ public class MQSLoad
|
|||||||
{
|
{
|
||||||
System.out.println( "Usage: MQSLoad [-fb \"field_break\"] [-mb \"message_break\"] [-kmb] <Output_MsgQueue_Name> <Input_File_Name>");
|
System.out.println( "Usage: MQSLoad [-fb \"field_break\"] [-mb \"message_break\"] [-kmb] <Output_MsgQueue_Name> <Input_File_Name>");
|
||||||
System.out.println( " Default: Field Break: (" + Str_UnFormat( Field_Break) + ") Message Break: (" + Str_UnFormat( Message_Break) + ") Keep Message Break: (" + Keep_Message_Break + ")");
|
System.out.println( " Default: Field Break: (" + Str_UnFormat( Field_Break) + ") Message Break: (" + Str_UnFormat( Message_Break) + ") Keep Message Break: (" + Keep_Message_Break + ")");
|
||||||
|
|
||||||
|
System.exit( 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -563,6 +565,8 @@ public class MQSLoad
|
|||||||
|
|
||||||
MQSDeInit();
|
MQSDeInit();
|
||||||
System.out.println( "MQS Load Completed !");
|
System.out.println( "MQS Load Completed !");
|
||||||
|
|
||||||
|
System.exit( 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -570,6 +574,8 @@ public class MQSLoad
|
|||||||
{
|
{
|
||||||
System.out.println("Exception: (" + Expt + ") !");
|
System.out.println("Exception: (" + Expt + ") !");
|
||||||
Expt.printStackTrace();
|
Expt.printStackTrace();
|
||||||
|
|
||||||
|
System.exit( 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user