geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r581962 - /geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/InstallModulesMojo.java
Date Thu, 04 Oct 2007 16:25:31 GMT
Author: gawor
Date: Thu Oct  4 09:25:30 2007
New Revision: 581962

URL: http://svn.apache.org/viewvc?rev=581962&view=rev
Log:
repository.getUrl() does not return properly formatted file URL sometimes.

Modified:
    geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/InstallModulesMojo.java

Modified: geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/InstallModulesMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/InstallModulesMojo.java?rev=581962&r1=581961&r2=581962&view=diff
==============================================================================
--- geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/InstallModulesMojo.java
(original)
+++ geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/InstallModulesMojo.java
Thu Oct  4 09:25:30 2007
@@ -211,7 +211,12 @@
         DownloadResults downloadPoller = new DownloadResults();
 
         PluginListType pluginList = new PluginListType();
-        pluginList.getDefaultRepository().add(sourceRepository.getUrl());
+        String localRepo = sourceRepository.getUrl();
+        if ("file".equals(sourceRepository.getProtocol())) {
+            File localRepoDir = new File(sourceRepository.getBasedir());
+            localRepo = localRepoDir.toURI().toString();
+        }
+        pluginList.getDefaultRepository().add(localRepo);
         for (org.apache.maven.model.Repository repository: (List<org.apache.maven.model.Repository>)project.getRepositories())
{
             pluginList.getDefaultRepository().add(repository.getUrl());
         }



Mime
View raw message