You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2014/07/19 20:23:26 UTC
svn commit: r1611941 -
/lucene/dev/trunk/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java
Author: sarowe
Date: Sat Jul 19 18:23:25 2014
New Revision: 1611941
URL: http://svn.apache.org/r1611941
Log:
LUCENE-5831: ant precommit should remind people to run clean-jars and jar-checksums when checksums are not right
Modified:
lucene/dev/trunk/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java
Modified: lucene/dev/trunk/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java?rev=1611941&r1=1611940&r2=1611941&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java (original)
+++ lucene/dev/trunk/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java Sat Jul 19 18:23:25 2014
@@ -52,6 +52,9 @@ public class LicenseCheckTask extends Ta
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 Ta
processJars();
if (failures) {
- throw new BuildException("License check failed. Check the logs.");
+ throw new BuildException(FAILURE_MESSAGE);
}
}