You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2014/01/06 20:16:11 UTC
svn commit: r1555980 - /lucene/dev/trunk/extra-targets.xml
Author: uschindler
Date: Mon Jan 6 19:16:10 2014
New Revision: 1555980
URL: http://svn.apache.org/r1555980
Log:
LUCENE-5385: Small update to fail on other fatal SVN errors
Modified:
lucene/dev/trunk/extra-targets.xml
Modified: lucene/dev/trunk/extra-targets.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/extra-targets.xml?rev=1555980&r1=1555979&r2=1555980&view=diff
==============================================================================
--- lucene/dev/trunk/extra-targets.xml (original)
+++ lucene/dev/trunk/extra-targets.xml Mon Jan 6 19:16:10 2014
@@ -123,7 +123,9 @@
try {
statusClient.doStatus(basedir, false);
} catch (SVNException ex) {
- int code = ex.getErrorMessage().getErrorCode().getCode();
+ def ec = ex.getErrorMessage().getErrorCode();
+ int code = ec.getCode();
+ int category = ec.getCategory();
if (code == SVNErrorCode.WC_UNSUPPORTED_FORMAT.getCode()) {
task.log('WARNING: Unsupported SVN working copy version! Disabling checks...', Project.MSG_WARN);
task.log('If your working copy is on version 1.8 already, please pass -Dsvnkit.version=' + RECOMMENDED_SVNKIT_18 + ' to successfully run checks.', Project.MSG_INFO);
@@ -131,9 +133,11 @@
} else if (code == SVNErrorCode.WC_NOT_DIRECTORY.getCode() || code == SVNErrorCode.WC_NOT_FILE.getCode()) {
task.log('WARNING: Development directory is not an SVN checkout! Disabling checks...', Project.MSG_WARN);
return;
- } else {
+ } else if (category == SVNErrorCode.WC_CATEGORY) {
task.log('WARNING: Development directory is not a valid SVN checkout (' + ex.getErrorMessage() + '). Disabling checks...', Project.MSG_WARN);
return;
+ } else {
+ throw ex;
}
}