org.apache.tools.ant.taskdefs
Class Property

java.lang.Object
  |
  +--org.apache.tools.ant.Task
        |
        +--org.apache.tools.ant.taskdefs.Property

public class Property
extends Task

Will set a Project property. Used to be a hack in ProjectHelper Will not override values set by the command line or parent projects.

Author:
costin@dnt.ro, Sam Ruby

Fields inherited from class org.apache.tools.ant.Task
description, location, project, target
 
Constructor Summary
Property()
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getValue()
           
 void init()
           
 void setFile(java.lang.String file)
           
 void setName(java.lang.String name)
           
 void setResource(java.lang.String resource)
           
 void setUserProperty(boolean userP)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, setDescription, setLocation, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property()
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setValue

public void setValue(java.lang.String value)

getValue

public java.lang.String getValue()

setFile

public void setFile(java.lang.String file)

setResource

public void setResource(java.lang.String resource)

init

public void init()
          throws BuildException
Overrides:
init in class Task

setUserProperty

public void setUserProperty(boolean userP)


Copyright © 2000 Apache Software Foundation. All Rights Reserved.