Skip to content

Commit 6455361

Browse files
committed
Fix AspectUsageCommand on Windows
1 parent a525f2d commit 6455361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/samm-cli/src/main/java/org/eclipse/esmf/aspect/AspectUsageCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void run() {
6464
final Try<AspectModelUrn> inputAspectModelUrn = AspectModelUrn.from( input );
6565
final List<Reference> references = inputAspectModelUrn.map( usage::referencesTo )
6666
.getOrElse( () -> {
67-
final URI targetUri = inputFile.map( File::toURI ).orElse( URI.create( input ) );
67+
final URI targetUri = inputFile.map( File::toURI ).orElse( URI.create( input.replace( "\\", "/" ) ) );
6868
final AspectModelFile fileToCheck = aspectModelLoader.loadContents()
6969
.filter( file -> file.sourceLocation().map( targetUri::equals ).orElse( false ) )
7070
.findFirst()

0 commit comments

Comments
 (0)