- private void checkOutputFile(File output, ModificationTracker tracker)
- throws
- MojoExecutionException
- {
- try
- {
- if (output.exists())
- tracker.track(SCRIPT, new FileInputStream(output));
- else
- tracker.track(SCRIPT, ZonedDateTime.now().toString());
- }
- catch (IOException e)
- {
- String error =
- "Error while checking the generated script: " + e.getMessage();
- getLog().error(error);
- throw new MojoExecutionException(error);
- }
- }
-