continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r219414 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ValidateProject.java
Date Sun, 17 Jul 2005 22:45:15 GMT
Author: trygvis
Date: Sun Jul 17 15:45:12 2005
New Revision: 219414

URL: http://svn.apache.org/viewcvs?rev=219414&view=rev
Log:
o The SCM URL has to be set at all times.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ValidateProject.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ValidateProject.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ValidateProject.java?rev=219414&r1=219413&r2=219414&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ValidateProject.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ValidateProject.java
Sun Jul 17 15:45:12 2005
@@ -41,6 +41,11 @@
 //            throw new ContinuumStoreException( "A project with the scm url '" + scmUrl
+ "' already exist." );
 //        }
 
+        if ( StringUtils.isEmpty( project.getScmUrl() ) )
+        {
+            throw new ContinuumException( "The SCM URL has to be set." );
+        }
+
         // TODO: validate that the SCM provider id
 
         // ----------------------------------------------------------------------



Mime
View raw message