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