geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r659499 - in /geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact: ArtifactManager.java ArtifactResolutionException.java DefaultArtifactManager.java ResolutionException.java
Date Fri, 23 May 2008 10:58:12 GMT
Author: jdillon
Date: Fri May 23 03:58:12 2008
New Revision: 659499

URL: http://svn.apache.org/viewvc?rev=659499&view=rev
Log:
Rename exception, fixed javadocs

Added:
    geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ResolutionException.java
  (contents, props changed)
      - copied, changed from r659498, geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactResolutionException.java
Removed:
    geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactResolutionException.java
Modified:
    geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactManager.java
    geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/DefaultArtifactManager.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactManager.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactManager.java?rev=659499&r1=659498&r2=659499&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactManager.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactManager.java
Fri May 23 03:58:12 2008
@@ -52,5 +52,5 @@
 
     void setDownloadMonitor(TransferListener listener);
 
-    ArtifactResolutionResult resolve(ArtifactResolutionRequest request) throws ArtifactResolutionException;
+    ArtifactResolutionResult resolve(ArtifactResolutionRequest request) throws ResolutionException;
 }
\ No newline at end of file

Modified: geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/DefaultArtifactManager.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/DefaultArtifactManager.java?rev=659499&r1=659498&r2=659499&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/DefaultArtifactManager.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/DefaultArtifactManager.java
Fri May 23 03:58:12 2008
@@ -138,7 +138,7 @@
         log.debug("Using download monitor: {}", listener);
     }
     
-    public ArtifactResolutionResult resolve(final ArtifactResolutionRequest request) throws
ArtifactResolutionException {
+    public ArtifactResolutionResult resolve(final ArtifactResolutionRequest request) throws
ResolutionException {
         assert request != null;
 
         // Automatically fill in some missing bits
@@ -162,14 +162,14 @@
         return validateResolutionResult(request, result);
     }
 
-    private ArtifactResolutionResult validateResolutionResult(final ArtifactResolutionRequest
request, final ArtifactResolutionResult result) throws ArtifactResolutionException {
+    private ArtifactResolutionResult validateResolutionResult(final ArtifactResolutionRequest
request, final ArtifactResolutionResult result) throws ResolutionException {
         assert request != null;
         assert result != null;
 
         log.debug("Validating result: {}", result);
 
         if (/* TODO: detect failure */ false) {
-            throw new ArtifactResolutionException(request, result);
+            throw new ResolutionException(request, result);
         }
 
         return result;

Copied: geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ResolutionException.java
(from r659498, geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactResolutionException.java)
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ResolutionException.java?p2=geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ResolutionException.java&p1=geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactResolutionException.java&r1=659498&r2=659499&rev=659499&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ArtifactResolutionException.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ResolutionException.java
Fri May 23 03:58:12 2008
@@ -23,11 +23,11 @@
 import org.apache.maven.artifact.resolver.ArtifactResolutionRequest;
 
 /**
- * Thrown to indicate that a given repository is not valid.
+ * Thrown to indicate that an artifact resolution request has failed.
  *
  * @version $Rev$ $Date$
  */
-public class ArtifactResolutionException
+public class ResolutionException
     extends ArtifactManagerException
 {
     private static final long serialVersionUID = 1;
@@ -36,7 +36,7 @@
     
     public final ArtifactResolutionResult result;
 
-    public ArtifactResolutionException(final ArtifactResolutionRequest request, final ArtifactResolutionResult
result) {
+    public ResolutionException(final ArtifactResolutionRequest request, final ArtifactResolutionResult
result) {
         assert request != null;
         assert result != null;
 

Propchange: geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ResolutionException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ResolutionException.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gshell/trunk/gshell-support/gshell-artifact/src/main/java/org/apache/geronimo/gshell/artifact/ResolutionException.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message