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

io.quarkus.cli.common.BuildOptions Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.cli.common;

import picocli.CommandLine;

public class BuildOptions {
    @CommandLine.Option(order = 3, names = {
            "--clean" }, description = "Perform clean as part of build. False by default.", negatable = true)
    public boolean clean = false;

    @CommandLine.Option(order = 4, names = { "--native" }, description = "Build native executable.", defaultValue = "false")
    public boolean buildNative = false;

    @CommandLine.Option(order = 5, names = { "--offline" }, description = "Work offline.", defaultValue = "false")
    public boolean offline = false;

    @CommandLine.Option(order = 6, names = {
            "--no-tests" }, description = "Run tests.", negatable = true, defaultValue = "false")
    public boolean skipTests = false;

    @CommandLine.Option(order = 7, names = {
            "--report" }, description = "Generate build report.", negatable = true, defaultValue = "false")
    public boolean generateReport = false;

    public boolean skipTests() {
        return skipTests;
    }

    @Override
    public String toString() {
        return "BuildOptions [buildNative=" + buildNative + ", clean=" + clean + ", offline=" + offline + ", skipTests="
                + skipTests + ", generateReport=" + generateReport + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy