Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Better use of output paths
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Sep 19, 2017
1 parent 52fe204 commit 1074bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/org/openqa/selenium/buck/file/Folder.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ protected Folder(
super(target, filesystem, ruleFinder, Folder.class);

this.folderName = Preconditions.checkNotNull(folderName);
this.output = new OutputPath(BuildTargets.getGenPath(
getProjectFilesystem(),
target,
String.format("%s/%%s.src.zip", target.getShortName())));
this.output = new OutputPath(String.format("%s.src.zip", target.getShortName()));
this.srcs = srcs.stream().map(InputPath::new).collect(MoreCollectors.toImmutableSortedSet());
}

Expand Down
7 changes: 1 addition & 6 deletions src/org/openqa/selenium/buck/mozilla/Xpi.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ public Xpi(
this.resources = resources.stream().map(InputPath::new).collect(MoreCollectors.toImmutableSortedSet());
this.platforms = platforms.stream().map(InputPath::new).collect(MoreCollectors.toImmutableSortedSet());

this.output = new OutputPath(BuildTargets.getGenPath(
getProjectFilesystem(),
getBuildTarget(),
String.format("%%s/%s.xpi", getBuildTarget().getShortName())));


this.output = new OutputPath(String.format("%s.xpi", getBuildTarget().getShortName()));
}

@Override
Expand Down

0 comments on commit 1074bf2

Please sign in to comment.