/** * Executes the script. * * @param args optional commandline arguments, can be null * @throws Exception if checks or execution fail */ public void start(String[] args) throws Exception { if (args == null) { args = new String[0]; } preCheck(args); execute(args); }
/** * Performs pre-execution checks. * <p/> * This method checks whether Groovy is available (throws an exception if not). * * @param args optional commandline arguments * @throws Exception if checks fail */ protected void preCheck(String[] args) throws Exception { super.preCheck(args); if (!Groovy.isPresent()) throw new Exception("Groovy classes are not present in CLASSPATH!"); }
/** * Executes the script. * * @param args optional commandline arguments, can be null * @throws Exception if checks or execution fail */ public void start(String[] args) throws Exception { if (args == null) { args = new String[0]; } preCheck(args); execute(args); }
/** * Performs pre-execution checks. * <p/> * This method checks whether Groovy is available (throws an exception if not). * * @param args optional commandline arguments * @throws Exception if checks fail */ protected void preCheck(String[] args) throws Exception { super.preCheck(args); if (!Groovy.isPresent()) throw new Exception("Groovy classes are not present in CLASSPATH!"); }
/** * Performs pre-execution checks. * <p/> * This method checks whether Jython is available (throws an exception if * not). * * @param args optional commandline arguments * @throws Exception if checks fail */ @Override protected void preCheck(String[] args) throws Exception { super.preCheck(args); if (!Jython.isPresent()) { throw new Exception("Jython classes are not present in CLASSPATH!"); } }
/** * Performs pre-execution checks. * <p/> * This method checks whether Jython is available (throws an exception if * not). * * @param args optional commandline arguments * @throws Exception if checks fail */ @Override protected void preCheck(String[] args) throws Exception { super.preCheck(args); if (!Jython.isPresent()) { throw new Exception("Jython classes are not present in CLASSPATH!"); } }