+ final boolean extra_processing1;
+ if ( cla.isOptionSet( EXTRA_PROCESSING_OPTION1 ) ) {
+ extra_processing1 = true;
+ }
+ else {
+ extra_processing1 = false;
+ }
+ String extra_processing1_sep = EXTRA_PROCESSING1_SEP_DEFAULT;
+ if ( cla.isOptionSet( EXTRA_PROCESSING1_SEP_OPTION ) ) {
+ if ( !extra_processing1 ) {
+ ForesterUtil.fatalError( PRG_NAME,
+ "extra processing is not enabled, cannot set -"
+ + EXTRA_PROCESSING1_SEP_OPTION + " option" );
+ }
+ if ( cla.isOptionValueSet( EXTRA_PROCESSING1_SEP_OPTION ) ) {
+ extra_processing1_sep = cla.getOptionValue( EXTRA_PROCESSING1_SEP_OPTION );
+ }
+ else {
+ ForesterUtil.fatalError( PRG_NAME, "no value for extra processing separator" );
+ }
+ }
+ if ( ( extra_processing1_sep != null ) && extra_processing1_sep.equals( separator ) ) {
+ ForesterUtil.fatalError( PRG_NAME,
+ "extra processing separator must not be the same the annotation-separator" );
+ }
+ boolean extra_processing1_keep = EXTRA_PROCESSING1_KEEP_EXTRA_DEFAULT;
+ if ( cla.isOptionSet( EXTRA_PROCESSING1_KEEP_EXTRA_OPTION ) ) {
+ if ( !extra_processing1 ) {
+ ForesterUtil.fatalError( PRG_NAME,
+ "extra processing is not enabled, cannot set -"
+ + EXTRA_PROCESSING1_KEEP_EXTRA_OPTION + " option" );
+ }
+ extra_processing1_keep = true;
+ }
+ Pattern special_pattern = null;
+ boolean special_processing = false;
+ if ( cla.isOptionSet( SPECIAL_PROCESSING_OPTION ) ) {
+ if ( extra_processing1 == true ) {
+ ForesterUtil
+ .fatalError( PRG_NAME,
+ "extra processing cannot be used together with special processing pattern" );
+ }
+ if ( cla.isOptionValueSet( SPECIAL_PROCESSING_OPTION ) ) {
+ final String str = cla.getOptionValue( SPECIAL_PROCESSING_OPTION );
+ try {
+ special_pattern = Pattern.compile( str );
+ }
+ catch ( final PatternSyntaxException e ) {
+ ForesterUtil
+ .fatalError( PRG_NAME,
+ "error in special processing pattern: " + str + ": " + e.getMessage() );
+ }
+ special_processing = true;
+ }
+ else {
+ ForesterUtil.fatalError( PRG_NAME, "no value for special processing pattern" );
+ }
+ }
+ final boolean remove_annotation_sep;
+ if ( cla.isOptionSet( REMOVE_ANNOT_SEP_OPTION ) ) {
+ remove_annotation_sep = true;
+ }
+ else {
+ remove_annotation_sep = false;
+ }
+ final boolean verbose;
+ if ( cla.isOptionSet( VERBOSE_OPTION ) ) {
+ verbose = true;
+ }
+ else {
+ verbose = false;
+ }
+ final boolean quit;
+ if ( cla.isOptionSet( QUIET_OPTION ) ) {
+ quit = true;
+ }
+ else {
+ quit = false;
+ }