io.quarkiverse.quinoa.deployment.items.BuiltResourcesBuildItem Maven / Gradle / Ivy
package io.quarkiverse.quinoa.deployment.items;
import java.nio.file.Path;
import java.util.Optional;
import java.util.Set;
import io.quarkus.builder.item.SimpleBuildItem;
public final class BuiltResourcesBuildItem extends SimpleBuildItem {
private final Optional directory;
private final Set resources;
public BuiltResourcesBuildItem(Path directory, Set resources) {
this.directory = Optional.ofNullable(directory);
this.resources = resources;
}
public BuiltResourcesBuildItem(Set entries) {
this.directory = Optional.empty();
this.resources = entries;
}
public Optional getDirectory() {
return directory;
}
public Set resources() {
return resources;
}
public record BuiltResource(String name, byte[] content) {
}
}