if (this.transformation == null) {
return new CopyAction() {
@Override
public WorkResult execute(CopyActionProcessingStream copyActionProcessingStream) {
System.out.println("No transformation defined for this task");
return new SimpleWorkResult(false);
}
};
}
return new TransformationAction(this.destinationDir, this.getSource().getFiles(), this.classpath.getFiles(), this.transformation);