|
Message
From: cvs at opencores.org<cvs@o...>
Date: Thu Nov 29 14:58:57 CET 2007
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/07/11 29:14:58 Modified: jop/java/tools/src/com/jopdesign/debug/jdwp/util PacketPrinter.java Log: Small change to better handle an error situation. Now if an exception occurs, it exit the application with an error code. Useful to make Ant stop running and report the error. Class was tested with new packet handling code and seems to be working just fine. Method changed: 42: public static void main(String args[]) Revision Changes Path 1.3 jop/java/tools/src/com/jopdesign/debug/jdwp/util/PacketPrinter.java http://www.opencores.org/cvsweb.shtml/jop/java/tools/src/com/jopdesign/debug/jdwp/util/PacketPrinter.java.diff?r1=1.2&r2=1.3 (In the diff below, changes in quantity of whitespace are not shown.) Index: PacketPrinter.java =================================================================== RCS file: /cvsroot/paulo/jop/java/tools/src/com/jopdesign/debug/jdwp/util/PacketPrinter.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- PacketPrinter.java 23 Nov 2007 04:59:04 -0000 1.2 +++ PacketPrinter.java 29 Nov 2007 13:58:57 -0000 1.3 @@ -82,6 +82,8 @@ { System.out.println("Failure: " + exception.getMessage()); exception.printStackTrace(); + // exit with failure + System.exit(-1); } } }
|
 |