/** * Get a {@link DeploymentDescription} with a specific name if it exists. * * @param target * The name of the {@link DeploymentDescription} * * @return Defined Deployment or null if not found. */ public Deployment deployment(DeploymentTargetDescription target) { Validate.notNull(target, "Target must be specified"); if (DeploymentTargetDescription.DEFAULT.equals(target)) { return findDefaultDeployment(); } return findMatchingDeployment(target); }
/** * Get a {@link DeploymentDescription} with a specific name if it exists. * * @param target * The name of the {@link DeploymentDescription} * * @return Defined Deployment or null if not found. */ public Deployment deployment(DeploymentTargetDescription target) { Validate.notNull(target, "Target must be specified"); if (DeploymentTargetDescription.DEFAULT.equals(target)) { return findDefaultDeployment(); } return findMatchingDeployment(target); }