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

ca.vanzyl.provisio.maven.MavenResult Maven / Gradle / Ivy

/*
 * Copyright (C) 2015-2024 Jason van Zyl
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ca.vanzyl.provisio.maven;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;

public class MavenResult {

    private String output;
    private Map> executedGoals;
    private Collection resolvedArtifacts;
    private Collection deployedArtifacts;
    private List errors;

    public String getOutput() {
        return (output != null) ? output : "";
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public Map> getExecutedGoals() {
        if (executedGoals == null) {
            executedGoals = new HashMap>();
        }
        return executedGoals;
    }

    public void setExecutedGoals(Map> executedGoals) {
        this.executedGoals = executedGoals;
    }

    public Collection getResolvedArtifacts() {
        if (resolvedArtifacts == null) {
            resolvedArtifacts = new LinkedHashSet();
        }
        return resolvedArtifacts;
    }

    public void setResolvedArtifacts(Collection resolvedArtifacts) {
        this.resolvedArtifacts = resolvedArtifacts;
    }

    public Collection getDeployedArtifacts() {
        if (deployedArtifacts == null) {
            deployedArtifacts = new LinkedHashSet();
        }
        return deployedArtifacts;
    }

    public void setDeployedArtifacts(Collection deployedArtifacts) {
        this.deployedArtifacts = deployedArtifacts;
    }

    public List getErrors() {
        if (errors == null) {
            errors = new ArrayList();
        }
        return errors;
    }

    public void setErrors(List errors) {
        this.errors = errors;
    }

    public boolean hasErrors() {
        return errors != null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy