continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r170757 - /maven/continuum/trunk/continuum-core-it/continuum_cli.py
Date Wed, 18 May 2005 14:36:30 GMT
Author: trygvis
Date: Wed May 18 07:36:28 2005
New Revision: 170757

URL: http://svn.apache.org/viewcvs?rev=170757&view=rev
Log:
o Adjusting to the XML-RPC API. Adding SCM URL to the showProject command.

Modified:
    maven/continuum/trunk/continuum-core-it/continuum_cli.py

Modified: maven/continuum/trunk/continuum-core-it/continuum_cli.py
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core-it/continuum_cli.py?rev=170757&r1=170756&r2=170757&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core-it/continuum_cli.py (original)
+++ maven/continuum/trunk/continuum-core-it/continuum_cli.py Wed May 18 07:36:28 2005
@@ -41,9 +41,11 @@
     def do_addMavenTwoProject(self, args):
         """Add a Maven 2.x project."""
 
-        projectId = continuum.addMavenTwoProject( args[0] )
+        projectIds = continuum.addMavenTwoProject( args[0] )
 
-        print "Added project, id: " + projectId
+        print "Added " + str( len( projectIds ) ) + " projects."
+        for id in projectIds:
+            print " id: " + id
 
     def do_addMavenOneProject(self, args):
         """Add a Maven 1.x project."""
@@ -67,13 +69,16 @@
 Version:            %(version)s
 Working directory:  %(workingDirectory)s
 State:              %(state)s
-Executor type:      %(executorId)s""" % project.map
+Executor type:      %(executorId)s
+SCM URL:            %(scmUrl)s""" % project.map
 
-        if ( project.checkOutErrorMessage != None and project.checkOutErrorException != None
):
+        if ( project.checkOutErrorMessage != None or project.checkOutErrorException != None
):
             print ""
             print "There was a error while checking out the project:"
-            print "Error message: " + project.checkOutErrorMessage
-            print "Exception: " + project.checkOutErrorException
+            if ( project.checkOutErrorMessage != None ):
+                print "Error message: " + project.checkOutErrorMessage
+            if ( project.checkOutErrorException != None ):
+                print "Exception: " + project.checkOutErrorException
         else:
             print ""
             print "Checked out files:"



Mime
View raw message