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

Prj-Import: Fix path parsing for windows

Issue-Ref: 3993

Signed-off-by: default avatarAlexander Diewald <>
parent b5478258 7bebc32f9c000b00536bdae5ac71f963000ec6e6 YELLOW 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