gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r569240 - in /gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources: Checksum.java GumpArtifact.java Jar.java
Date Fri, 24 Aug 2007 04:10:16 GMT
Author: bodewig
Date: Thu Aug 23 21:10:16 2007
New Revision: 569240

URL: http://svn.apache.org/viewvc?rev=569240&view=rev
Log:
Make it compile, make it work

Modified:
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Checksum.java
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/GumpArtifact.java
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Jar.java

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Checksum.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Checksum.java?rev=569240&r1=569239&r2=569240&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Checksum.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Checksum.java Thu Aug 23
21:10:16 2007
@@ -65,7 +65,7 @@
                 }
                 checksumSb.append(hexStr);
             }
-            checksumSb.append("\t").append(fileName);
+            checksumSb.append(" ").append(fileName);
             return new StringRepresentation(checksumSb,
                                             Constants.CHECKSUM_VARIANT
                                             .getMediaType());
@@ -93,4 +93,8 @@
         return algorithm + " checksum";
     }
     
+    @Override
+    protected String getURITemplate() {
+        return Constants.CHECKSUM_ARTIFACT_TEMPLATE;
+    }
 }

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/GumpArtifact.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/GumpArtifact.java?rev=569240&r1=569239&r2=569240&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/GumpArtifact.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/GumpArtifact.java Thu Aug
23 21:10:16 2007
@@ -49,6 +49,7 @@
 
     protected abstract Representation getRepresentation(String fileName);
     protected abstract String getArtifactType();
+    protected abstract String getURITemplate();
 
     /**
      * The local file or a proxied request
@@ -61,8 +62,7 @@
         } else {
             log("proxying");
             return new Proxy(getContext(),
-                             Constants.MVN_REPO_HOST
-                             + Constants.MVN_ARTIFACT_TEMPLATE)
+                             Constants.MVN_REPO_HOST + getURITemplate())
                 .serve(getRequest(), getResponse());
         }
     }

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Jar.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Jar.java?rev=569240&r1=569239&r2=569240&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Jar.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepo/resources/Jar.java Thu Aug 23 21:10:16
2007
@@ -48,4 +48,9 @@
         return "jar";
     }
     
+    @Override
+    protected String getURITemplate() {
+        return Constants.JAR_ARTIFACT_TEMPLATE;
+    }
+     
 }



Mime
View raw message