state.SSJAVA = true;
} else if (option.equals("-ssjavadebug")) {
state.SSJAVADEBUG = true;
+
+ } else if( option.equals( "-ssjava-inject-error" ) ) {
+ state.SSJAVA_INJECT_ERROR = true;
+ state.SSJAVA_INV_ERROR_PROB = Integer.parseInt( args[++i] );
+ state.SSJAVA_ERROR_SEED = Integer.parseInt( args[++i] );
+
}else if (option.equals("-printlinenum")) {
state.LINENUM=true;
} else if (option.equals("-help")) {
bc.registerExtension( bcx );
}
+ if( state.SSJAVA_INJECT_ERROR ) {
+ BCXSSJavaInjectError bcx = new BCXSSJavaInjectError( state, bc );
+ bc.registerExtension( bcx );
+ }
+
bc.buildCode();
State.logEvent("Done With BuildCode");