@Override public void dispatch(FileTaskOutput output) { onFile(params, output.getDestination()); }
@Override public void dispatch(FileTaskOutput output) { destination = output.getDestination(); setGraphic(FontAwesomeIconFactory.get().createIcon(FontAwesomeIcon.FILE_PDF_ALT, "1.6em")); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof FileTaskOutput)) { return false; } FileTaskOutput output = (FileTaskOutput) other; return new EqualsBuilder().append(file, output.getDestination()).isEquals(); }
@Override public void dispatch(FileTaskOutput output) { Path dest = output.getDestination().toPath().getParent(); if (Files.exists(dest)) { bufferLocation = dest; } }
@Override public void dispatch(FileTaskOutput output) { Path dest = output.getDestination().toPath().getParent(); if (Files.exists(dest)) { bufferLocation = dest; } }
@Override public int hashCode() { return new HashCodeBuilder().append(getDestination()).toHashCode(); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof FileTaskOutput)) { return false; } FileTaskOutput output = (FileTaskOutput) other; return new EqualsBuilder().append(file, output.getDestination()).isEquals(); }
@Override public String toString() { return new ToStringBuilder(this).append(getDestination()).toString(); }
@Override public int hashCode() { return new HashCodeBuilder().append(getDestination()).toHashCode(); }
@Override public String toString() { return new ToStringBuilder(this).append(getDestination()).toString(); }
@Override public void dispatch(FileTaskOutput output) throws IOException { if (isNull(taskOutput)) { throw new IOException("No task output set"); } moveFile(taskOutput, output.getDestination(), existingOutputPolicy, executionContext); }
@Override public void dispatch(FileTaskOutput output) throws IOException { if (isNull(taskOutput)) { throw new IOException("No task output set"); } moveFile(taskOutput, output.getDestination(), existingOutputPolicy, executionContext); }
@Override public void dispatch(FileTaskOutput output) { assertEquals(expected.toAbsolutePath().normalize().toFile(), output.getDestination()); }