org.objectweb.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.objectweb.jonas.ant.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
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JProperty()
           
 
Method Summary
 void execute()
          Execute the task.
 void setDefaultValue(java.lang.String defaultValue)
          The default value if the property cannot be found
 void setValue(java.lang.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
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
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, wait, wait, wait
 

Constructor Detail

JProperty

public JProperty()
Method Detail

setValue

public void setValue(java.lang.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(java.lang.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()