org.apache.cactus.ant
Class ArgListTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.cactus.ant.ArgListTask

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

Compute a string (returned as an Ant property) that contains a list of args (in the format [-Dname=value]*) that can be used on a java command line. Example :


 
 

 
   
   
   
 

 
 

will print "-Dproperty1=value1 -Dproperty3=value3".

Version:
$Id: ArgListTask.java,v 1.1 2002/02/24 23:49:05 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
ArgListTask()
           
 
Method Summary
 void addProperty(ArgListProperty theProperty)
          Add a new property to the list of properties to check.
 void execute()
          Execute task.
 void setProperty(java.lang.String theNewProperty)
          Set the name of the new Ant property that will contain the arg list.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgListTask

public ArgListTask()
Method Detail

addProperty

public void addProperty(ArgListProperty theProperty)
Add a new property to the list of properties to check.
Parameters:
theProperty - the property to add to the list

setProperty

public void setProperty(java.lang.String theNewProperty)
Set the name of the new Ant property that will contain the arg list.
Parameters:
theNewProperty - the property that will contain the arg list

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute task. Check all specified Ant properties for existence and if they exist add them to the arg list ("-Dname=value" format).
Overrides:
execute in class org.apache.tools.ant.Task
See Also:
Task.execute()


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