gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r792088 - /gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/restlets/ArtifactAdder.java
Date Wed, 08 Jul 2009 10:12:07 GMT
Author: bodewig
Date: Wed Jul  8 10:12:06 2009
New Revision: 792088

URL: http://svn.apache.org/viewvc?rev=792088&view=rev
Log:
POMs are likely called pom.xml in the source tree, not foo.pom

Modified:
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/restlets/ArtifactAdder.java

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/restlets/ArtifactAdder.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/restlets/ArtifactAdder.java?rev=792088&r1=792087&r2=792088&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/restlets/ArtifactAdder.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/restlets/ArtifactAdder.java Wed
Jul  8 10:12:06 2009
@@ -40,6 +40,7 @@
         String fileName =
             (String) request.getAttributes().get(Constants.FILE_NAME);
         String artifactType = fileName.endsWith(Constants.POM_TYPE)
+            || fileName.endsWith("pom.xml")
             ? Constants.POM_TYPE : Constants.JAR_TYPE;
 
         getLogger().info("adding " + artifactType + " artifact with groupId '"



Mime
View raw message