Ignore:
Timestamp:
12/10/09 00:21:45 (14 years ago)
Author:
mszubert
Message:

Debug parameter added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/ecj/framsticks/FramsticksUtils.java

    r44 r48  
    3131        private static final String P_EXPERIMENT_DEFINITION = "expdef";
    3232        private static final String P_EXECUTABLE_COMMAND = "executable-cmd";
     33        private static final String P_DEBUG = "debug";
    3334
    3435        private String directoryPath;
     
    3839        private String experimentDefinition;
    3940        private String executableCommand;
     41        private boolean debug;
    4042
    4143        private static FramsticksUtils instance;
     
    7678                        state.output.fatal("No executable command specified", def.push(P_EXECUTABLE_COMMAND));
    7779                }
     80               
     81                debug = state.parameters.getBoolean(null, def.push(P_DEBUG), false);
    7882        }
    7983
     
    9397                }
    9498
     99                if (debug) {
     100                        System.out.println("Executing command : " + command);
     101                        System.out.println("Result : " + result);
     102                }
     103               
    95104                return result;
    96105        }
Note: See TracChangeset for help on using the changeset viewer.