wlu: 178195 fix
diff --git a/plugins/org.eclipse.epf.import/src/org/eclipse/epf/importing/services/ResourceScanner.java b/plugins/org.eclipse.epf.import/src/org/eclipse/epf/importing/services/ResourceScanner.java
index a78de5e..f7ed828 100755
--- a/plugins/org.eclipse.epf.import/src/org/eclipse/epf/importing/services/ResourceScanner.java
+++ b/plugins/org.eclipse.epf.import/src/org/eclipse/epf/importing/services/ResourceScanner.java
@@ -21,6 +21,7 @@
import java.util.regex.Pattern;
import org.eclipse.epf.common.utils.FileUtil;
+import org.eclipse.epf.common.utils.NetUtil;
import org.eclipse.epf.library.util.ResourceHelper;
import org.eclipse.epf.uma.MethodElement;
@@ -120,10 +121,18 @@
try {
if ( owner != null ) {
String elementPath = ResourceHelper.getElementPath(owner);
- srcFile = new File(new File(srcLibRoot, elementPath), url);
+ srcFile = new File(new File(srcLibRoot, elementPath), url);
+ if (!srcFile.isFile() || !srcFile.exists()) {
+ url = NetUtil.decodeURL(url);
+ srcFile = new File(new File(srcLibRoot, elementPath), url);
+ }
targetFile = new File(new File(targetLibRoot, elementPath), url);
} else {
- srcFile = new File(srcLibRoot, url);
+ srcFile = new File(srcLibRoot, url);
+ if (!srcFile.isFile() || !srcFile.exists()) {
+ url = NetUtil.decodeURL(url);
+ srcFile = new File(srcLibRoot, url);
+ }
targetFile = new File(targetLibRoot, url);
}