Apache Lucene open-source search software
LUCENE-4335: Fix the bug with modifications on the SVN root folder
Uwe Schindler7b2c2df689d2
diff --git a/extra-targets.xml b/extra-targets.xmlindex 4ac1d1d878c..266790131f8 100644--- a/extra-targets.xml+++ b/extra-targets.xml@@ -94,7 +94,7 @@File basedir = new File(project.getProperty('basedir')).getAbsoluteFile();int baseLen = basedir.toString().length();def convertRelative = {- file -> file.getAbsolutePath().substring(baseLen + 1).replace(File.separatorChar, (char)'/');+ file -> '.' + file.getAbsolutePath().substring(baseLen).replace(File.separatorChar, (char)'/');}Set missingProps = new TreeSet(), unversioned = new TreeSet(), changed = new TreeSet();@@ -108,11 +108,9 @@} else if (status.getKind() == SVNNodeKind.FILE && nodeStatus != SVNStatusType.STATUS_DELETED) {missingProps.add(convertRelative(status.getFile()));}- if (status.getKind() == SVNNodeKind.FILE) {- if (nodeStatus == SVNStatusType.STATUS_MODIFIED || nodeStatus == SVNStatusType.STATUS_REPLACED ||- nodeStatus == SVNStatusType.STATUS_DELETED || nodeStatus == SVNStatusType.STATUS_ADDED) {- changed.add(convertRelative(status.getFile()));- }+ if (nodeStatus == SVNStatusType.STATUS_MODIFIED || nodeStatus == SVNStatusType.STATUS_REPLACED ||+ nodeStatus == SVNStatusType.STATUS_DELETED || nodeStatus == SVNStatusType.STATUS_ADDED) {+ changed.add(convertRelative(status.getFile()));}} as ISVNStatusHandler, null);