Skip to content

Commit

Permalink
Win win
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Mar 22, 2024
1 parent a329b93 commit eb436ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ public boolean dump(boolean verbose, Output output) {

@Override
public ArtifactSink artifactSink(Output output, String spec) throws IOException {
String prefix = spec.contains(":") ? spec.substring(0, spec.indexOf(":")) : "flatImplied";
// This is to honor paths like "C:/..." (so we check for "prefix" longer than 3 chars)
String prefix = spec.indexOf(':') > 3 ? spec.substring(0, spec.indexOf(":")) : "flatImplied";
switch (prefix) {
case "flatImplied":
return DirectorySink.flat(output, context.basedir().resolve(spec));
Expand Down

0 comments on commit eb436ba

Please sign in to comment.