@Override public void addConfigured(Handover handover) { handoverHolder.addConfigured(handover); ensureHandoverOrDestinationIsConfigured(); }
@Override public Handover getHandover() { return handoverHolder.getHandover(); }
private void ensureHandoverOrDestinationIsConfigured() { if (handoverHolder.getHandover() != null && (destinationDir != null || destinationFile != null)) { throw new BuildException("Configure either handover or destination"); } }