LUCENE-5831: ant precommit should remind people to run clean-jars and jar-checksums when checksums are not right

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1611941 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2014-07-19 18:23:25 +00:00
parent a0bc0c3d80
commit d2218a8b85
1 changed files with 4 additions and 1 deletions

View File

@ -52,6 +52,9 @@ public class LicenseCheckTask extends Task {
public final static String CHECKSUM_TYPE = "sha1";
private static final int CHECKSUM_BUFFER_SIZE = 8 * 1024;
private static final int CHECKSUM_BYTE_MASK = 0xFF;
private static final String FAILURE_MESSAGE = "License check failed. Check the logs.\n"
+ "If you recently modified ivy-versions.properties or any module's ivy.xml,\n"
+ "make sure you run \"ant clean-jars jar-checksums\" before running precommit.";
private boolean skipSnapshotsChecksum;
private boolean skipChecksum;
@ -133,7 +136,7 @@ public class LicenseCheckTask extends Task {
processJars();
if (failures) {
throw new BuildException("License check failed. Check the logs.");
throw new BuildException(FAILURE_MESSAGE);
}
}