mirror of https://github.com/apache/lucene.git
LUCENE-5385: Small update to fail on other fatal SVN errors
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1555980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2216123c75
commit
e7309b2ce6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue