org.apache.commons.jelly.task
Class JellyTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.commons.jelly.task.JellyTask

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

JellyTask is an Ant task which will run a given Jelly script.

Version:
$Revision: 1.3 $
Author:
James Strachan

Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JellyTask()
           
 
Method Summary
protected  Script compileScript()
          Compiles the script
 void execute()
          Excutes the Jelly script
 JellyContext getJellyContext()
          The context to use
 java.net.URL getRootContext()
          Gets the root context
 java.net.URL getUrl()
           
 XMLOutput getXMLOutput()
           
protected  java.net.URL resolveURL(java.lang.String name)
           
 void setFile(java.io.File file)
          Sets the script file to use
 void setOutput(java.io.File output)
          Sets the output to generate
 void setRootContext(java.net.URL rootContext)
          Sets the root context
 void setScript(java.lang.String script)
          Sets the script URL to use as an absolute URL or a relative filename
 void setUrl(java.net.URL url)
          Sets the script URL to use
 void setXMLOutput(XMLOutput xmlOutput)
          Sets the XMLOutput used
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JellyTask

public JellyTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Excutes the Jelly script
Overrides:
execute in class org.apache.tools.ant.Task

setScript

public void setScript(java.lang.String script)
               throws java.net.MalformedURLException
Sets the script URL to use as an absolute URL or a relative filename

getUrl

public java.net.URL getUrl()

setUrl

public void setUrl(java.net.URL url)
Sets the script URL to use

setFile

public void setFile(java.io.File file)
             throws java.net.MalformedURLException
Sets the script file to use

setOutput

public void setOutput(java.io.File output)
               throws java.io.IOException
Sets the output to generate

getXMLOutput

public XMLOutput getXMLOutput()
                       throws java.io.IOException

setXMLOutput

public void setXMLOutput(XMLOutput xmlOutput)
Sets the XMLOutput used

getRootContext

public java.net.URL getRootContext()
                            throws java.net.MalformedURLException
Gets the root context

setRootContext

public void setRootContext(java.net.URL rootContext)
Sets the root context

getJellyContext

public JellyContext getJellyContext()
                             throws java.net.MalformedURLException
The context to use

compileScript

protected Script compileScript()
                        throws java.lang.Exception
Compiles the script

resolveURL

protected java.net.URL resolveURL(java.lang.String name)
                           throws java.net.MalformedURLException
Returns:
the URL for the relative file name or absolute URL


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.