org.jvnet.hudson.maven.plugins.hudson
Class BuildAllMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jvnet.hudson.maven.plugins.hudson.AbstractHudsonMojo
          extended by org.jvnet.hudson.maven.plugins.hudson.BuildAllMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, AbstractHudsonMojo.JobClosure

public class BuildAllMojo
extends AbstractHudsonMojo
implements AbstractHudsonMojo.JobClosure

Goal which hits a Hudson server and builds all of the jobs.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.hudson.maven.plugins.hudson.AbstractHudsonMojo
AbstractHudsonMojo.JobClosure, AbstractHudsonMojo.PluginType
 
Field Summary
 
Fields inherited from class org.jvnet.hudson.maven.plugins.hudson.AbstractHudsonMojo
httpClient, hudsonURL, project, settings
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BuildAllMojo()
           
 
Method Summary
 void doWithJob(java.lang.String jobName)
          Rebuild a job.
 void execute()
          Execute the mojo's logic.
 
Methods inherited from class org.jvnet.hudson.maven.plugins.hudson.AbstractHudsonMojo
configurePlugin, createHudsonURL, createJobBuildURL, createJobConfigURL, createJobListURL, createOrChange, createOrChange, doPost, doPost, findServer, forEachJob, getDocumentFromHudson, getJobList, loadJobConfig, rebuildJob, saveJobConfig, setupClient
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildAllMojo

public BuildAllMojo()
Method Detail

doWithJob

public void doWithJob(java.lang.String jobName)
               throws org.apache.maven.plugin.MojoExecutionException
Rebuild a job.

Specified by:
doWithJob in interface AbstractHudsonMojo.JobClosure
Parameters:
jobName - the name of the job to build
Throws:
org.apache.maven.plugin.MojoExecutionException - if something goes wrong
See Also:
AbstractHudsonMojo.JobClosure.doWithJob(java.lang.String)

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Execute the mojo's logic.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException - if something goes wrong


Copyright © 1981-2008 MTV Networks. All Rights Reserved.