classes/phing/tasks/system/condition/PhingVersion.php
public function main()
    {
        if ($this->propertyname == null) {
            throw new BuildException("'property' must be set.");
        }
        if ($this->atLeast != null || $this->exactly != null) {
            // If condition values are set, evaluate the condition
            if ($this->evaluate()) {
                $this->getProject()->setNewProperty($this->propertyname, $this->getVersion());
            }
        } else {
            // Raw task
            $this->getProject()->setNewProperty($this->propertyname, $this->getVersion());
        }
    }
public function main()
    {
        if ($this->propertyname == null) {
            throw new BuildException("'property' must be set.");
        }
        if ($this->atLeast != null || $this->exactly != null) {
            // If condition values are set, evaluate the condition
            if ($this->evaluate()) {
                $this->getProject()->setNewProperty($this->propertyname, $this->getVersion());
            }
        } else {
            // Raw task
            $this->getProject()->setNewProperty($this->propertyname, $this->getVersion());
        }
    }
public function main ( ) { if ( $ this -> propertyname == null ) { throw new BuildException ( "'property' must be set." ) ; } if ( $ this -> atLeast != null || $ this -> exactly != null ) { // If condition values are set, evaluate the condition if ( $ this -> evaluate ( ) ) { $ this -> getProject ( ) -> setNewProperty ( $ this -> propertyname , $ this -> getVersion ( ) ) ; } } else { // Raw task $ this -> getProject ( ) -> setNewProperty ( $ this -> propertyname , $ this -> getVersion ( ) ) ; } }
Run as a task.

@throws BuildException if an error occurs.
Run as a task .