From depot-cvs-return-500-apmail-incubator-depot-cvs-archive=incubator.apache.org@incubator.apache.org Sun Jun 27 07:08:57 2004 Return-Path: Delivered-To: apmail-incubator-depot-cvs-archive@www.apache.org Received: (qmail 80922 invoked from network); 27 Jun 2004 07:08:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Jun 2004 07:08:57 -0000 Received: (qmail 28746 invoked by uid 500); 27 Jun 2004 07:09:04 -0000 Delivered-To: apmail-incubator-depot-cvs-archive@incubator.apache.org Received: (qmail 28723 invoked by uid 500); 27 Jun 2004 07:09:04 -0000 Mailing-List: contact depot-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: depot-dev@incubator.apache.org Delivered-To: mailing list depot-cvs@incubator.apache.org Received: (qmail 28709 invoked by uid 99); 27 Jun 2004 07:09:04 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Sun, 27 Jun 2004 00:09:04 -0700 Received: (qmail 80911 invoked by uid 65534); 27 Jun 2004 07:08:55 -0000 Date: 27 Jun 2004 07:08:55 -0000 Message-ID: <20040627070855.80909.qmail@minotaur.apache.org> From: nickchalko@apache.org To: depot-cvs@incubator.apache.org Subject: svn commit: rev 22185 - incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/cache X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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.