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

io.provis.maven.MavenResult Maven / Gradle / Ivy

There is a newer version: 0.1.56
Show newest version
/**
 * Copyright (c) 2016 Takari, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package io.provis.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