All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.argocd.cli.handlers.GetOutputDirectoryHandler Maven / Gradle / Ivy

The newest version!
package io.quarkiverse.argocd.cli.handlers;

import java.nio.file.Path;
import java.util.function.BiConsumer;
import java.util.function.Consumer;

import io.quarkiverse.argocd.spi.ArgoCDOutputDirBuildItem;
import io.quarkus.builder.BuildResult;

public class GetOutputDirectoryHandler implements BiConsumer {

    @Override
    public void accept(Object context, BuildResult buildResult) {
        ArgoCDOutputDirBuildItem.Effective outputDirBuildItem = buildResult.consume(ArgoCDOutputDirBuildItem.Effective.class);
        Consumer consumer = (Consumer) context;
        consumer.accept(outputDirBuildItem.getOutputDir());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy