org.jvnet.hudson.maven.plugins.hudson
Class AddTwitterMojo

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.AbstractActionPerJobMojo
              extended by org.jvnet.hudson.maven.plugins.hudson.AddTwitterMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, AbstractHudsonMojo.JobClosure

public class AddTwitterMojo
extends AbstractActionPerJobMojo
implements AbstractHudsonMojo.JobClosure

Goal which adds Twitter notifications to a job or all jobs.

Author:
edelsonj

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
AddTwitterMojo()
           
 
Method Summary
 void doWithJob(java.lang.String name)
          Add the TwitterPublisher to the job
 
Methods inherited from class org.jvnet.hudson.maven.plugins.hudson.AbstractActionPerJobMojo
execute
 
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

AddTwitterMojo

public AddTwitterMojo()
Method Detail

doWithJob

public void doWithJob(java.lang.String name)
               throws org.apache.maven.plugin.MojoExecutionException
Add the TwitterPublisher to the job

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


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