continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r190359 - in /maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc: ContinuumXmlRpc.java DefaultContinuumXmlRpc.java
Date Mon, 13 Jun 2005 06:26:28 GMT
Author: jvanzyl
Date: Sun Jun 12 23:26:28 2005
New Revision: 190359

URL: http://svn.apache.org/viewcvs?rev=190359&view=rev
Log:
o cleaning out unused code

Modified:
    maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumXmlRpc.java
    maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java

Modified: maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumXmlRpc.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumXmlRpc.java?rev=190359&r1=190358&r2=190359&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumXmlRpc.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/ContinuumXmlRpc.java
Sun Jun 12 23:26:28 2005
@@ -37,13 +37,6 @@
 
     Hashtable removeProject( String projectId );
 
-//    Hashtable updateProject( String projectId,
-//                             String name,
-//                             String scmUrl,
-//                             String nagEmailAddress,
-//                             String version,
-//                             String commandLineArguments );
-
     Hashtable updateProjectConfiguration( String projectId,
                                           Hashtable configuration );
 
@@ -98,25 +91,11 @@
     // Ant projects
     // ----------------------------------------------------------------------
 
-//    Hashtable addAntProject( String scmUrl,
-//                             String projectName,
-//                             String nagEmailAddress,
-//                             String version,
-//                             String commandLineArguments,
-//                             Hashtable configuration );
-
     Hashtable addAntProject( Hashtable antProject );
 
     // ----------------------------------------------------------------------
     // Shell projects
     // ----------------------------------------------------------------------
-
-//    Hashtable addShellProject( String scmUrl,
-//                               String projectName,
-//                               String nagEmailAddress,
-//                               String version,
-//                               String commandLineArguments,
-//                               Hashtable configuration );
 
     Hashtable addShellProject( Hashtable shellProject );
 }

Modified: maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java?rev=190359&r1=190358&r2=190359&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java
(original)
+++ maven/continuum/trunk/continuum-xmlrpc/src/main/java/org/apache/maven/continuum/xmlrpc/DefaultContinuumXmlRpc.java
Sun Jun 12 23:26:28 2005
@@ -83,80 +83,6 @@
         }
     }
 
-//    public Hashtable updateProject( String projectId,
-//                                    String name,
-//                                    String scmUrl,
-//                                    String nagEmailAddress,
-//                                    String version,
-//                                    String commandLineArguments )
-//    {
-//        try
-//        {
-//            ContinuumProject project = continuum.getProject( projectId );
-//
-//            if ( project.getExecutorId().equals( MavenOneBuildExecutor.ID ) )
-//            {
-//                project = continuum.getMavenOneProject( projectId );
-//            }
-//            else if ( project.getExecutorId().equals( MavenTwoBuildExecutor.ID ) )
-//            {
-//                project = continuum.getMavenTwoProject( projectId );
-//            }
-//            else if ( project.getExecutorId().equals( AntBuildExecutor.ID ) )
-//            {
-//                project = continuum.getAntProject( projectId );
-//            }
-//            else if ( project.getExecutorId().equals( ShellBuildExecutor.ID ) )
-//            {
-//                project = continuum.getShellProject( projectId );
-//            }
-//
-//            project.setName( name );
-//
-//            project.setScmUrl( scmUrl );
-//
-//            project.setNagEmailAddress( nagEmailAddress );
-//
-//            project.setVersion( version );
-//
-//            project.setCommandLineArguments( commandLineArguments );
-//
-//            // ----------------------------------------------------------------------
-//            //
-//            // ----------------------------------------------------------------------
-//
-//            if ( project instanceof MavenOneProject )
-//            {
-//                continuum.updateMavenOneProject( (MavenOneProject) project );
-//            }
-//            else if ( project instanceof MavenTwoProject )
-//            {
-//                continuum.updateMavenTwoProject( (MavenTwoProject) project );
-//            }
-//            else if ( project instanceof AntProject )
-//            {
-//                continuum.updateAntProject( (AntProject) project );
-//            }
-//            else if ( project instanceof ShellProject )
-//            {
-//                continuum.updateShellProject( (ShellProject) project );
-//            }
-//            else
-//            {
-//                return handleException( "ContinuumXmlRpc.updateProject()",
-//                                        "Project id: '" + projectId + "'.",
-//                                        new ContinuumException( "Unknown project type:
" + project.getClass().getName() ) );
-//            }
-//
-//            return makeHashtable();
-//        }
-//        catch ( Throwable e )
-//        {
-//            return handleException( "ContinuumXmlRpc.updateProject()",
-//                                    "Project id: '" + projectId + "'.", e );
-//        }
-//    }
-
     public Hashtable updateProjectConfiguration( String projectId,
                                                  Hashtable configuration )
     {
@@ -515,85 +441,6 @@
     {
         throw new RuntimeException( "NOT IMPLEMENTED" );
     }
-
-    // ----------------------------------------------------------------------
-    // Ant projects
-    // ----------------------------------------------------------------------
-
-//    public Hashtable addAntProject( String scmUrl,
-//                                    String projectName,
-//                                    String nagEmailAddress,
-//                                    String version,
-//                                    String commandLineArguments,
-//                                    Hashtable configuration )
-//    {
-//        return addProjectFromScm( scmUrl,
-//                                  AntBuildExecutor.ID,
-//                                  projectName,
-//                                  nagEmailAddress,
-//                                  version,
-//                                  commandLineArguments,
-//                                  configuration );
-//    }
-
-    // ----------------------------------------------------------------------
-    // Shell projects
-    // ----------------------------------------------------------------------
-
-//    public Hashtable addShellProject( String scmUrl,
-//                                      String projectName,
-//                                      String nagEmailAddress,
-//                                      String version,
-//                                      String commandLineArguments,
-//                                      Hashtable configuration )
-//    {
-//        return addProjectFromScm( scmUrl,
-//                                  ShellBuildExecutor.ID,
-//                                  projectName,
-//                                  nagEmailAddress,
-//                                  version,
-//                                  commandLineArguments,
-//                                  configuration );
-//    }
-
-    // ----------------------------------------------------------------------
-    // Projects
-    // ----------------------------------------------------------------------
-
-//    private Hashtable addProjectFromScm( String scmUrl,
-//                                         String executorId,
-//                                         String projectName,
-//                                         String nagEmailAddress,
-//                                         String version,
-//                                         String commandLineArguments,
-//                                         Hashtable configuration )
-//    {
-//        try
-//        {
-//            Properties configurationProperties = new Properties();
-//
-//            for ( Iterator it = configuration.entrySet().iterator(); it.hasNext(); )
-//            {
-//                Map.Entry entry = (Map.Entry) it.next();
-//
-//                configurationProperties.put( entry.getKey().toString(), entry.getValue().toString()
);
-//            }
-//
-//            String projectId = core.addProjectFromScm( scmUrl,
-//                                                       executorId,
-//                                                       projectName,
-//                                                       nagEmailAddress,
-//                                                       version,
-//                                                       commandLineArguments,
-//                                                       configurationProperties );
-//
-//            return makeHashtable( "projectId", projectId );
-//        }
-//        catch ( Throwable e )
-//        {
-//            return handleException( "ContinuumXmlRpc.addProjectFromScm()", null, e );
-//        }
-//    }
 
     // ----------------------------------------------------------------------
     // Object to Hashtable converters



Mime
View raw message