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:24:41 UTC

svn commit: r1611943 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/tools/ lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java

Author: sarowe
Date: Sat Jul 19 18:24:41 2014
New Revision: 1611943

URL: http://svn.apache.org/r1611943
Log:
LUCENE-5831: ant precommit should remind people to run clean-jars and jar-checksums when checksums are not right (merged trunk r1611941)

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/tools/   (props changed)
    lucene/dev/branches/branch_4x/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java

Modified: lucene/dev/branches/branch_4x/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java?rev=1611943&r1=1611942&r2=1611943&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java (original)
+++ lucene/dev/branches/branch_4x/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java Sat Jul 19 18:24:41 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);
     }
   }