Skip to content

Commit

Permalink
Fix AspectUsageCommand on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
atextor committed Aug 22, 2024
1 parent a525f2d commit 6455361
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void run() {
final Try<AspectModelUrn> inputAspectModelUrn = AspectModelUrn.from( input );
final List<Reference> references = inputAspectModelUrn.map( usage::referencesTo )
.getOrElse( () -> {
final URI targetUri = inputFile.map( File::toURI ).orElse( URI.create( input ) );
final URI targetUri = inputFile.map( File::toURI ).orElse( URI.create( input.replace( "\\", "/" ) ) );
final AspectModelFile fileToCheck = aspectModelLoader.loadContents()
.filter( file -> file.sourceLocation().map( targetUri::equals ).orElse( false ) )
.findFirst()
Expand Down

0 comments on commit 6455361

Please sign in to comment.