net.sourceforge.pebble.ant.metaweblog
Class NewMediaObjectTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by net.sourceforge.pebble.ant.metaweblog.NewMediaObjectTask
All Implemented Interfaces:
java.lang.Cloneable

public class NewMediaObjectTask
extends org.apache.tools.ant.Task

Ant task to post a file to a blog via the MetaWeblog API.

Author:
Simon Brown

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
NewMediaObjectTask()
           
 
Method Summary
 void execute()
          Performs the work of this task.
 void setBlogid(java.lang.String blogid)
          Sets the blog id.
 void setDest(java.lang.String dest)
          Sets the destination file.
 void setHandler(java.lang.String handler)
          Sets the name of the XML-RPC Blogger API handler (e.g.
 void setPassword(java.lang.String password)
          Sets the XML-RPC password.
 void setSrc(java.lang.String src)
          Sets the source file.
 void setUrl(java.lang.String url)
          Sets the URL of the XML-RPC call.
 void setUsername(java.lang.String username)
          Sets the XML-RPC username.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewMediaObjectTask

public NewMediaObjectTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Performs the work of this task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - if something goes wrong

setBlogid

public void setBlogid(java.lang.String blogid)
Sets the blog id.

Parameters:
blogid - a String

setUsername

public void setUsername(java.lang.String username)
Sets the XML-RPC username.

Parameters:
username - a String

setPassword

public void setPassword(java.lang.String password)
Sets the XML-RPC password.

Parameters:
password - a String

setUrl

public void setUrl(java.lang.String url)
Sets the URL of the XML-RPC call.

Parameters:
url - the URL as a String

setHandler

public void setHandler(java.lang.String handler)
Sets the name of the XML-RPC Blogger API handler (e.g. "blogger").

Parameters:
handler - the name of the handler as a String

setSrc

public void setSrc(java.lang.String src)
Sets the source file.

Parameters:
src - the source as a String

setDest

public void setDest(java.lang.String dest)
Sets the destination file.

Parameters:
dest - the destination as a String


Copyright © 2003-2006, Simon Brown. All Rights Reserved.