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

Commit 1074bf2

Browse files
committed
Better use of output paths
1 parent 52fe204 commit 1074bf2

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/org/openqa/selenium/buck/file/Folder.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ protected Folder(
5959
super(target, filesystem, ruleFinder, Folder.class);
6060

6161
this.folderName = Preconditions.checkNotNull(folderName);
62-
this.output = new OutputPath(BuildTargets.getGenPath(
63-
getProjectFilesystem(),
64-
target,
65-
String.format("%s/%%s.src.zip", target.getShortName())));
62+
this.output = new OutputPath(String.format("%s.src.zip", target.getShortName()));
6663
this.srcs = srcs.stream().map(InputPath::new).collect(MoreCollectors.toImmutableSortedSet());
6764
}
6865

src/org/openqa/selenium/buck/mozilla/Xpi.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ public Xpi(
7676
this.resources = resources.stream().map(InputPath::new).collect(MoreCollectors.toImmutableSortedSet());
7777
this.platforms = platforms.stream().map(InputPath::new).collect(MoreCollectors.toImmutableSortedSet());
7878

79-
this.output = new OutputPath(BuildTargets.getGenPath(
80-
getProjectFilesystem(),
81-
getBuildTarget(),
82-
String.format("%%s/%s.xpi", getBuildTarget().getShortName())));
83-
84-
79+
this.output = new OutputPath(String.format("%s.xpi", getBuildTarget().getShortName()));
8580
}
8681

8782
@Override

0 commit comments

Comments
 (0)