Commit 5f4f4b4a authored by Alexander Diewald's avatar Alexander Diewald

Prj-Import: Fix path parsing for windows

Issue-Ref: 3993
Issue-Url: https://af3-developer.fortiss.org/issues/3993Signed-off-by: default avatarAlexander Diewald <diewal@fortiss.org>
parent b5478258
AF3ProjectImportHandler.java 7bebc32f9c000b00536bdae5ac71f963000ec6e6 YELLOW
AF3ProjectImportHandler.java 6bc73dd1799cc561c37bea3f771c358854b5b75a YELLOW
......@@ -76,9 +76,10 @@ public class AF3ProjectImportHandler implements ICommandLineSwitchHandler {
// Import files matching the regexp. Supports single files, too.
URI importDirURI = Paths.get(importRegExp).getParent().toUri();
File importDir = new File(importDirURI);
String fileRegExp = importRegExp.replaceFirst(importDir.toString() + File.separator, "");
String fileRegExp = Paths.get(importRegExp).getFileName().toString();
WildcardFileFilter fileFilter =
new WildcardFileFilter(asList(fileRegExp, "." + AF3_PRJ_SUFFIX));
return asList(importDir.listFiles((FileFilter)fileFilter));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment