Skip to content

Commit

Permalink
use Unix separators when on win-os
Browse files Browse the repository at this point in the history
  • Loading branch information
parenko committed May 18, 2024
1 parent 6c3b4ab commit be1a5cd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import io.swagger.v3.parser.core.models.ParseOptions;
import io.swagger.v3.parser.util.ClasspathHelper;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
Expand Down Expand Up @@ -1086,7 +1087,7 @@ private URL inputSpecRemoteUrl() {

if (url == null) {
try {
url = new URI(inputSpec).toURL();
url = new URI(FilenameUtils.separatorsToUnix(inputSpec)).toURL();
} catch (URISyntaxException | MalformedURLException | IllegalArgumentException e) {
}
}
Expand Down

0 comments on commit be1a5cd

Please sign in to comment.