continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r471968 - /maven/continuum/trunk/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/SampleClient.java
Date Tue, 07 Nov 2006 02:12:18 GMT
Author: carlos
Date: Mon Nov  6 18:12:17 2006
New Revision: 471968

URL: http://svn.apache.org/viewvc?view=rev&rev=471968
Log:
Use constants

Modified:
    maven/continuum/trunk/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/SampleClient.java

Modified: maven/continuum/trunk/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/SampleClient.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/SampleClient.java?view=diff&rev=471968&r1=471967&r2=471968
==============================================================================
--- maven/continuum/trunk/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/SampleClient.java
(original)
+++ maven/continuum/trunk/continuum-rpc-client/src/main/java/org/apache/maven/continuum/rpc/SampleClient.java
Mon Nov  6 18:12:17 2006
@@ -17,6 +17,7 @@
  */
 
 import org.apache.maven.continuum.model.project.Project;
+import org.apache.maven.continuum.project.ContinuumProjectState;
 
 import java.net.URL;
 
@@ -70,42 +71,43 @@
 
                 System.out.println( "Name for project " + project.getId() + " : " + project.getName()
);
 
-                if ( project.getState() == 1 || project.getState() == 10 )
+                if ( project.getState() == ContinuumProjectState.NEW
+                    || project.getState() == ContinuumProjectState.CHECKEDOUT )
                 {
                     System.out.println( "State: New" );
                 }
 
-                if ( project.getState() == 2 )
+                if ( project.getState() == ContinuumProjectState.OK )
                 {
                     System.out.println( "State: OK" );
                 }
 
-                if ( project.getState() == 3 )
+                if ( project.getState() == ContinuumProjectState.FAILED )
                 {
                     System.out.println( "State: Failed" );
                 }
 
-                if ( project.getState() == 4 )
+                if ( project.getState() == ContinuumProjectState.ERROR )
                 {
                     System.out.println( "State: Error" );
                 }
 
-                if ( project.getState() == 6 )
+                if ( project.getState() == ContinuumProjectState.BUILDING )
                 {
                     System.out.println( "State: Building" );
                 }
 
-                if ( project.getState() == 7 )
+                if ( project.getState() == ContinuumProjectState.CHECKING_OUT )
                 {
                     System.out.println( "State: Checking out" );
                 }
 
-                if ( project.getState() == 8 )
+                if ( project.getState() == ContinuumProjectState.UPDATING )
                 {
                     System.out.println( "State: Updating" );
                 }
 
-                if ( project.getState() == 9 )
+                if ( project.getState() == ContinuumProjectState.WARNING )
                 {
                     System.out.println( "State: Warning" );
                 }



Mime
View raw message