continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r279288 - in /maven/continuum/trunk: continuum-api/src/main/java/org/apache/maven/continuum/project/builder/ continuum-cc/src/main/java/org/apache/maven/continuum/project/builder/cc/ continuum-core/src/main/java/org/apache/maven/continuum/c...
Date Wed, 07 Sep 2005 10:03:28 GMT
Author: evenisse
Date: Wed Sep  7 03:03:14 2005
New Revision: 279288

URL: http://svn.apache.org/viewcvs?rev=279288&view=rev
Log:
[CONTINUUM-306] support for authenticated http:// urls

Modified:
    maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
    maven/continuum/trunk/continuum-cc/src/main/java/org/apache/maven/continuum/project/builder/cc/CruiseControlProjectBuilder.java
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadata.java

Modified: maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java?rev=279288&r1=279287&r2=279288&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
(original)
+++ maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
Wed Sep  7 03:03:14 2005
@@ -42,7 +42,7 @@
 
         InputStream is = null;
 
-        if ( metadata.getProtocol().equals( "https" ) )
+        if ( metadata.getProtocol().startsWith( "http" ) )
         {
             is = new MungedHttpsURL( metadata.toExternalForm(), username, password ).getURL().openStream();
         }

Modified: maven/continuum/trunk/continuum-cc/src/main/java/org/apache/maven/continuum/project/builder/cc/CruiseControlProjectBuilder.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-cc/src/main/java/org/apache/maven/continuum/project/builder/cc/CruiseControlProjectBuilder.java?rev=279288&r1=279287&r2=279288&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-cc/src/main/java/org/apache/maven/continuum/project/builder/cc/CruiseControlProjectBuilder.java
(original)
+++ maven/continuum/trunk/continuum-cc/src/main/java/org/apache/maven/continuum/project/builder/cc/CruiseControlProjectBuilder.java
Wed Sep  7 03:03:14 2005
@@ -342,7 +342,7 @@
 
             URL u = url;
 
-            if ( "https".equals( url.getProtocol() ) )
+            if ( url.getProtocol().startsWith("http") )
             {
                 u = new MungedHttpsURL( url.toString() ).getURL();
             }

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadata.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadata.java?rev=279288&r1=279287&r2=279288&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadata.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadata.java
Wed Sep  7 03:03:14 2005
@@ -45,7 +45,7 @@
 
         try
         {
-            if ( !u.startsWith( "https" ) )
+            if ( !u.startsWith( "http" ) )
             {
                 url = new URL( u );
                 result = projectBuilder.buildProjectsFromMetadata( url, null, null );



Mime
View raw message