Commit 4acdc9ed authored by David Trott's avatar David Trott

Ensuring javac compile happens even when the thrift compilation is skipped.

This fixes a bug when the class files get stale.
parent e9d4a01b
......@@ -154,6 +154,7 @@ abstract class AbstractThriftMojo extends AbstractMojo {
getLog().info("No thrift files to compile.");
} else if (checkStaleness && ((lastModified(thriftFiles) + staleMillis) < lastModified(outputFiles))) {
getLog().info("Skipping compilation because target directory newer than sources.");
attachFiles();
} else {
ImmutableSet<File> derivedThriftPathElements =
makeThriftPathFromJars(temporaryThriftFileDirectory, getDependencyArtifactFiles());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment