org.ow2.jonas.ant
Class JProperty

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.Property
              extended by org.ow2.jonas.ant.JProperty
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
JProperty

public class JProperty
extends org.apache.tools.ant.taskdefs.Property

Allow to define property with the value of my.${name}.property.

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.Property
classpath, env, file, name, prefix, ref, resource, url, userProperty, value
 
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
JProperty()
           
 
Method Summary
 void execute()
          Execute the task.
 void setDefaultValue(String defaultValue)
          The default value if the property cannot be found.
 void setValue(String value)
          The value of the property to set.
 
Methods inherited from class org.apache.tools.ant.taskdefs.Property
addProperties, addProperty, createClasspath, getClasspath, getEnvironment, getFile, getName, getPrefix, getRefid, getResource, getUrl, getValue, loadEnvironment, loadFile, loadResource, loadUrl, setClasspath, setClasspathRef, setEnvironment, setFile, setLocation, setName, setPrefix, setRefid, setResource, setUrl, setUserProperty, toString
 
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, wait, wait, wait
 

Constructor Detail

JProperty

public JProperty()
Method Detail

setValue

public void setValue(String value)
The value of the property to set.

Overrides:
setValue in class org.apache.tools.ant.taskdefs.Property
Parameters:
value - value to set

setDefaultValue

public void setDefaultValue(String defaultValue)
The default value if the property cannot be found.

Parameters:
defaultValue - value to set

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute the task. It sets the value by evaluating variable name.

Overrides:
execute in class org.apache.tools.ant.taskdefs.Property
Throws:
org.apache.tools.ant.BuildException - if value is not set
See Also:
Task.execute()


Copyright © 2008 OW2 Consortium. All Rights Reserved.