Commit 74d4b809 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

CLI/Project: Fix source location encoding

Issue-Ref: 3993
Issue-Url: https://af3-developer.fortiss.org/issues/3993

Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent 4d7b0609
AF3ProjectImportHandler.java a663cffc92862cb7e2824814768693f1a2fe9582 YELLOW
AF3ProjectImportHandler.java 24c73c8c8fcdefff88aa3866d1decf50d4e3d7ff YELLOW
......@@ -17,9 +17,10 @@ package org.fortiss.af3.project.cli;
import static java.util.Arrays.asList;
import static java.util.stream.Collectors.joining;
import static org.eclipse.emf.common.util.URI.createFileURI;
import static org.fortiss.af3.project.AF3Project.AF3_PRJ_SUFFIX;
import static org.fortiss.af3.project.utils.FileUtils.getDefaultGeneralProjectURI;
import static org.fortiss.af3.project.utils.FileUtils.importFileProject;
import static org.fortiss.af3.project.utils.ProjectUtils.importFileProject;
import static org.fortiss.tooling.kernel.utils.EMFResourceUtils.refreshWorkspace;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.error;
......@@ -116,9 +117,10 @@ public class AF3ProjectImportHandler implements ICommandLineSwitchHandler {
}
for(File fileToImport : filesToImport) {
org.eclipse.emf.common.util.URI sourceFileURI = createFileURI(fileToImport.toString());
org.eclipse.emf.common.util.URI targetFileURI =
getDefaultGeneralProjectURI().appendSegment(fileToImport.getName());
importFileProject(fileToImport, targetFileURI);
importFileProject(sourceFileURI, targetFileURI);
refreshWorkspace();
}
}
......
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