summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0864978)
After a failed build, further executions of the plugin were skipped, because
the MD5-summs suggested, that nothing is to do because nothing has changed.
Because of that, the MD5-summs are now removed in case of a failure.
thread.setContextClassLoader(contextClassLoader);
}
}
thread.setContextClassLoader(contextClassLoader);
}
}
+ catch (MojoExecutionException e)
+ {
+ tracker.failed();
+ throw e;
+ }
+ catch (MojoFailureException e)
+ {
+ tracker.failed();
+ throw e;
+ }
+ catch (RuntimeException e)
+ {
+ tracker.failed();
+ throw e;
+ }
finally
{
/** Remember mappings and configuration */
finally
{
/** Remember mappings and configuration */
private final Set<String> classNames;
private boolean modified = false;
private final Set<String> classNames;
private boolean modified = false;
+ private boolean failed = false;
private final File saved;
private final MessageDigest digest;
private final File saved;
private final MessageDigest digest;
+ void failed()
+ {
+ failed = true;
+ }
+
+
void load()
{
if (saved.isFile() && saved.length() > 0)
void load()
{
if (saved.isFile() && saved.length() > 0)
+ if (failed)
+ {
+ saved.delete();
+ return;
+ }
+