classes/phing/tasks/system/PropertyTask.php
protected function addProperty($name, $value)
    {
        if (count($this->filterChains) > 0) {
            $in = FileUtils::getChainedReader(new StringReader($value), $this->filterChains, $this->project);
            $value = $in->read();
        }

        $ph = PropertyHelper::getPropertyHelper($this->getProject());
        if ($this->userProperty) {
            if ($ph->getUserProperty(null, $name) === null || $this->override) {
                $ph->setInheritedProperty(null, $name, $value);
            } else {
                $this->log('Override ignored for ' . $name, Project::MSG_VERBOSE);
            }
        } else {
            if ($this->override) {
                $ph->setProperty(null, $name, $value, true);
            } else {
                $ph->setNewProperty(null, $name, $value);
            }
        }
    }
protected function addProperty($name, $value)
    {
        if (count($this->filterChains) > 0) {
            $in = FileUtils::getChainedReader(new StringReader($value), $this->filterChains, $this->project);
            $value = $in->read();
        }

        $ph = PropertyHelper::getPropertyHelper($this->getProject());
        if ($this->userProperty) {
            if ($ph->getUserProperty(null, $name) === null || $this->override) {
                $ph->setInheritedProperty(null, $name, $value);
            } else {
                $this->log('Override ignored for ' . $name, Project::MSG_VERBOSE);
            }
        } else {
            if ($this->override) {
                $ph->setProperty(null, $name, $value, true);
            } else {
                $ph->setNewProperty(null, $name, $value);
            }
        }
    }
protected function addProperty ( $ name , $ value ) { if ( count ( $ this -> filterChains ) > 0 ) { $ in = FileUtils :: getChainedReader ( new StringReader ( $ value ) , $ this -> filterChains , $ this -> project ) ; $ value = $ in -> read ( ) ; } $ ph = PropertyHelper :: getPropertyHelper ( $ this -> getProject ( ) ) ; if ( $ this -> userProperty ) { if ( $ ph -> getUserProperty ( null , $ name ) === null || $ this -> override ) { $ ph -> setInheritedProperty ( null , $ name , $ value ) ; } else { $ this -> log ( 'Override ignored for ' . $ name , Project :: MSG_VERBOSE ) ; } } else { if ( $ this -> override ) { $ ph -> setProperty ( null , $ name , $ value , true ) ; } else { $ ph -> setNewProperty ( null , $ name , $ value ) ; } } }
add a name value pair to the project property set

@param string $name name of property
@param string $value value to set
add a name value pair to the project property set