incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 22185 - incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/cache
Date Sun, 27 Jun 2004 07:08:55 GMT
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.

Mime
View raw message