// Copy the artifact into the target repo
File file = sourceRepo.getLocation(artifact);
InputStream input = new BufferedInputStream(new FileInputStream(file));
try {
FileWriteMonitor monitor = new FileWriteMonitor() {
public void writeStarted(final String file, final int bytes) {
log.debug("Copying dependency: " + file + " (" + bytes + " bytes)");
}
public void writeProgress(int bytes) {