public void startGoal() throws GoalConfigurationException { if(this.exe!=null) this.exe.start(); }
private final void execute() throws GoalConfigurationException, GoalExecutionException { // Execute the goal and measure execution time try { this.start(); this.executeTasks(); this.stop(); } // Throw as is catch(GoalConfigurationException gce) { this.stop(gce); this.skipGoalUpload(); // Do not upload in case of configuration problems throw gce; } // Throw as is catch(GoalExecutionException gee) { this.stop(gee); throw gee; } // Embedd in GoalExecutionException catch(Exception e) { this.stop(e); throw new GoalExecutionException(e); } finally { if(this.goalUploadEnabled) this.upload(); } }