results.add(new Result(url, Result.COPIED, srcUrl));
succeeded = true;
}
else {
Get get = new Get();
get.setProject(getProject());
get.setIgnoreErrors(false);
//log("Downloading if applicable from " + srcUrl + " to file: " + toFile);
get.init();
get.setSrc(srcUrl);
get.setUseTimestamp(true);
get.setDest(toFile);
get.setDescription(getDescription());
get.setLocation(getLocation());
get.setOwningTarget(getOwningTarget());
get.setVerbose(this.verbose);
get.setTaskName("get");
try {
final boolean got = get.doGet(Project.MSG_INFO, new VerboseProgress(System.out));
final int result = got
? Result.DOWNLOADED :
Result.NOT_MODIFIED;