continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r219425 - /maven/continuum/trunk/continuum-site/src/site/apt/soap-api.apt
Date Sun, 17 Jul 2005 23:27:25 GMT
Author: trygvis
Date: Sun Jul 17 16:27:21 2005
New Revision: 219425

URL: http://svn.apache.org/viewcvs?rev=219425&view=rev
Log:
o Fixing some Doxia syntax typos. Left ajusting the table.

Modified:
    maven/continuum/trunk/continuum-site/src/site/apt/soap-api.apt

Modified: maven/continuum/trunk/continuum-site/src/site/apt/soap-api.apt
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-site/src/site/apt/soap-api.apt?rev=219425&r1=219424&r2=219425&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-site/src/site/apt/soap-api.apt (original)
+++ maven/continuum/trunk/continuum-site/src/site/apt/soap-api.apt Sun Jul 17 16:27:21 2005
@@ -35,6 +35,7 @@
 Using the Bundled Java Client
 
 * Creating a Client
+
 +--+
 import org.apache.maven.continuum.xfire.ContinuumWebService;
 import org.apache.maven.continuum.xfire.ContinuumClientFactory;
@@ -44,8 +45,8 @@
 
 ...
 
-ContinuumWebService continuum =
-    ContinuumClientFactory.createClient("http://localhost:8080/continuum/services/Continuum");
+String url = "http://localhost:8080/continuum/services/Continuum";
+ContinuumWebService continuum = ContinuumClientFactory.createClient( url );
 +--+
 
 * Adding A Project
@@ -66,30 +67,35 @@
 +--+
 Build build = continuum.getLatestBuild(project.getId());
 
-if (build.getState() == ContinuumProjectState.OK)
+if ( build.getState() == ContinuumProjectState.OK )
+{
     doSomething();
-else if (build.getState() == ContinuumProjectState.FAILED)
+}
+else if ( build.getState() == ContinuumProjectState.FAILED )
+{
     punishDevelopers();
+}
 +--+
 
 Notes for other Toolkits
 
 * Project State
+
  In one of the above code snippets, you see that we can check the build state.
  The build state can be one of several values:
 
-*---*------------------------*
+*---*------------------------+
 | 1 | New Build              |
-*---*------------------------*
+*---*------------------------+
 | 2 | Successful Build       |
-*---*------------------------*
+*---*------------------------+
 | 3 | Failed Build           |
-*---*------------------------*
+*---*------------------------+
 | 4 | Error building         |
-*---*------------------------*
+*---*------------------------+
 | 6 | Build in process       |
-*---*------------------------*
+*---*------------------------+
 | 7 | Checking out from SCM  |
-*---*------------------------*
+*---*------------------------+
 | 8 | Updating from SCM      |
-*---*------------------------*
+*---*------------------------+



Mime
View raw message