public void produce(Map aValueMap, String aVerb, PrintWriter aLogger) throws ProducerFailure {
String source = "";
String destination = "";
+ File sourceFile;
+ File destinationFile;
try {
source = ParameterExpander.expandExpression( aValueMap, sourceExpression );
destination = ParameterExpander.expandExpression( aValueMap, destinationExpression );
aLogger.println("Copying " + source + " into " + destination);
- FileCopier.copyDirectory(
+ FileCopier.copy(
new File(sourceBasePath, source),
new File(destinationBasePath, destination));
}
throw new ProducerFailure("Copying " + source + " into " + destination + " failed: " + e.getMessage(), e);
}
}
-
- public Set buildVerbSet() {
- return new HashSet();
- }
}