mirror of https://github.com/apache/lucene.git
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:
parent
a0bc0c3d80
commit
d2218a8b85
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue