/** * Creates an empty {@link CustomDeployment}. * * @return an empty {@link CustomDeployment} */ public static CustomDeployment empty() { return new CustomDeployment(); }
/** * Creates a {@link CustomDeployment} consisting of the specified {@link DeploymentArtifact}s. * * @param artifacts the {@link DeploymentArtifact}s * * @return the {@link CustomDeployment} */ public static CustomDeployment including(DeploymentArtifact... artifacts) { CustomDeployment deployment = new CustomDeployment(); if (artifacts != null) { for (DeploymentArtifact artifact : artifacts) { deployment.artifactsToDeploy.add(artifact); } } return deployment; } }