You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by ni...@apache.org on 2004/06/27 07:08:55 UTC
svn commit: rev 22185 - incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/cache
Author: nickchalko
Date: Sun Jun 27 00:08:55 2004
New Revision: 22185
Modified:
incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/cache/CachedArtifactSet.java
Log:
Fixed some compile errors.
Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/cache/CachedArtifactSet.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/cache/CachedArtifactSet.java (original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/cache/CachedArtifactSet.java Sun Jun 27 00:08:55 2004
@@ -24,7 +24,6 @@
import org.apache.depot.common.ant.util.AntLogListener;
import org.apache.depot.common.log.Logger;
-import org.apache.depot.update.Artifact;
import org.apache.depot.update.ArtifactInstance;
import org.apache.depot.update.ArtifactUpdater;
import org.apache.depot.update.ArtifactUpdaterFactory;
@@ -164,10 +163,10 @@
*/
private void cacheFile(ArtifactElement r) {
try {
- ArtifactInstance resource = findBestRemoteArtifact(r);
- if (resource != null) {
+ ArtifactInstance artifactInstance = findBestRemoteArtifact(r);
+ if (artifactInstance != null) {
- downLoadRemoteResult(resource);
+ downLoadRemoteResult(artifactInstance);
}
return;
} catch (Exception e) {
@@ -257,9 +256,9 @@
* @param resource
* @throws UpdateException
*/
- private void downLoadRemoteResult(Artifact artifact) throws UpdateException {
+ private void downLoadRemoteResult(ArtifactInstance artifactInstance) throws UpdateException {
ArtifactUpdater ru = ArtifactUpdaterFactory.getDefaultUpdater();
- ru.getInstance(artifact);
+ ru.getInstance(artifactInstance.getArtifact()); // TODO do we really need to do this.
}
/**
* @return Returns the unmodifiableList of resources.