Branch: refs/heads/master
Home:
https://github.com/rhq-project/rhq
Commit: d3f63b559551ca4ab1c185410308d2f9e01c03cb
https://github.com/rhq-project/rhq/commit/d3f63b559551ca4ab1c185410308d2f...
Author: Jay Shaughnessy <jshaughn(a)redhat.com>
Date: 2014-07-23 (Wed, 23 Jul 2014)
Changed paths:
M
modules/core/plugin-container/src/main/java/org/rhq/core/pc/drift/FilterFileVisitor.java
M modules/core/util/src/main/java/org/rhq/core/util/file/FileUtil.java
Log Message:
-----------
[1119262 jon3-7] EAP6 drifts exclude pattern not working for windows case
The issue here is that the drift template defines the plugin descriptor
and in this case, the associated excludes filter: pattern="*_history/**/*".
It can only be predefined in one format, and the plugin naturally uses
linux-style forward slashes for the directory separator.
But on Windows that is the wrong separator.
The solution is to convert to the native separator slash internally at
"detection-time", regardless of the slashing used in the pattern. This is,
I think, in-line with ant file-pattern approach we are using.
Also,
-- added new FileUtil.useNativeSlash(String path)