modules/core/plugin-container/src/main/java/org/rhq/core/pc/drift/DriftDetector.java |
2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 95a2fea597a1a828352e84452c21690ff91f39cf
Author: John Sanda <jsanda(a)redhat.com>
Date: Thu Jun 30 00:31:18 2011 -0400
Do not store path name of basedir directory entry
I was previously storing the name of the base dir in the directory when
it included files which was resulting in the name getting appending to
the path twice when reading the change set file.
diff --git
a/modules/core/plugin-container/src/main/java/org/rhq/core/pc/drift/DriftDetector.java
b/modules/core/plugin-container/src/main/java/org/rhq/core/pc/drift/DriftDetector.java
index 524843b..5d1ae5d 100644
---
a/modules/core/plugin-container/src/main/java/org/rhq/core/pc/drift/DriftDetector.java
+++
b/modules/core/plugin-container/src/main/java/org/rhq/core/pc/drift/DriftDetector.java
@@ -73,7 +73,7 @@ public class DriftDetector implements Runnable {
private String relativePath(File basedir, File file) {
if (basedir.equals(file)) {
- return basedir.getName();
+ return ".";
}
return file.getAbsolutePath().substring(basedir.getAbsolutePath().length() + 1);
}
Show replies by date