You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2013/08/27 16:17:54 UTC
[3/3] git commit: MARMOTTA-291: fixed registration of subdirectories
inside import subdirectories
MARMOTTA-291: fixed registration of subdirectories inside import subdirectories
Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/54b76500
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/54b76500
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/54b76500
Branch: refs/heads/develop
Commit: 54b765008bbb6a2d976a68d7cfb5983fb2f0e707
Parents: d9c4190
Author: Sergio Fernández <wi...@apache.org>
Authored: Tue Aug 27 16:17:40 2013 +0200
Committer: Sergio Fernández <wi...@apache.org>
Committed: Tue Aug 27 16:17:40 2013 +0200
----------------------------------------------------------------------
.../platform/core/services/importer/ImportWatchServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/54b76500/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/importer/ImportWatchServiceImpl.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/importer/ImportWatchServiceImpl.java b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/importer/ImportWatchServiceImpl.java
index 0691563..54f16c1 100644
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/importer/ImportWatchServiceImpl.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/importer/ImportWatchServiceImpl.java
@@ -118,7 +118,7 @@ public class ImportWatchServiceImpl implements ImportWatchService {
if (StandardWatchEventKinds.ENTRY_CREATE.equals(event.kind())) {
if (file.isDirectory()) {
//recursive registration of sub-directories
- register(Paths.get(path, item.toString()), watcher, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE);
+ register(Paths.get(dir.toString(), item.toString()), watcher, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE);
task.updateProgress(++count);
} else {
log.debug("Importing '{}'...", file.getAbsolutePath());