Skip to content

Commit

Permalink
Expose reading classpath entries with an InputTag
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Dec 20, 2023
1 parent cc0e3dd commit 47a1ab9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/net/fabricmc/tinyremapper/TinyRemapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,19 @@ public CompletableFuture<?> readInputsAsync(InputTag tag, Path... inputs) {
}

public void readClassPath(final Path... inputs) {
read(inputs, false, null).join();
readClassPath(null, inputs);
}

public void readClassPath(InputTag tag, final Path... inputs) {
read(inputs, false, tag).join();
}

public CompletableFuture<?> readClassPathAsync(final Path... inputs) {
CompletableFuture<?> ret = read(inputs, false, null);
return readClassPathAsync(null, inputs);
}

public CompletableFuture<?> readClassPathAsync(InputTag tag, final Path... inputs) {
CompletableFuture<?> ret = read(inputs, false, tag);

if (!ret.isDone()) {
pendingReads.add(ret);
Expand Down

0 comments on commit 47a1ab9

Please sign in to comment.