private function setProjectVersionProperties()
  {
    if ($this->myVersionProperty)
    {
      $this->project->setProperty($this->myVersionProperty, $this->myNewVersion['version']);
    }

    if ($this->myReleaseProperty)
    {
      $this->project->setProperty($this->myReleaseProperty, $this->myNewVersion['release']);
    }
    if ($this->myPreReleaseProperty)
    {
      $this->project->setProperty($this->myPreReleaseProperty, $this->myNewVersion['pre-release']);
    }


    if ($this->myMajorProperty)
    {
      $this->project->setProperty($this->myMajorProperty, $this->myNewVersion['major']);
    }
    if ($this->myMinorProperty)
    {
      $this->project->setProperty($this->myMinorProperty, $this->myNewVersion['minor']);
    }
    if ($this->myPatchProperty)
    {
      $this->project->setProperty($this->myPatchProperty, $this->myNewVersion['patch']);
    }
  }
private function setProjectVersionProperties()
  {
    if ($this->myVersionProperty)
    {
      $this->project->setProperty($this->myVersionProperty, $this->myNewVersion['version']);
    }

    if ($this->myReleaseProperty)
    {
      $this->project->setProperty($this->myReleaseProperty, $this->myNewVersion['release']);
    }
    if ($this->myPreReleaseProperty)
    {
      $this->project->setProperty($this->myPreReleaseProperty, $this->myNewVersion['pre-release']);
    }


    if ($this->myMajorProperty)
    {
      $this->project->setProperty($this->myMajorProperty, $this->myNewVersion['major']);
    }
    if ($this->myMinorProperty)
    {
      $this->project->setProperty($this->myMinorProperty, $this->myNewVersion['minor']);
    }
    if ($this->myPatchProperty)
    {
      $this->project->setProperty($this->myPatchProperty, $this->myNewVersion['patch']);
    }
  }
private function setProjectVersionProperties ( ) { if ( $ this -> myVersionProperty ) { $ this -> project -> setProperty ( $ this -> myVersionProperty , $ this -> myNewVersion [ 'version' ] ) ; } if ( $ this -> myReleaseProperty ) { $ this -> project -> setProperty ( $ this -> myReleaseProperty , $ this -> myNewVersion [ 'release' ] ) ; } if ( $ this -> myPreReleaseProperty ) { $ this -> project -> setProperty ( $ this -> myPreReleaseProperty , $ this -> myNewVersion [ 'pre-release' ] ) ; } if ( $ this -> myMajorProperty ) { $ this -> project -> setProperty ( $ this -> myMajorProperty , $ this -> myNewVersion [ 'major' ] ) ; } if ( $ this -> myMinorProperty ) { $ this -> project -> setProperty ( $ this -> myMinorProperty , $ this -> myNewVersion [ 'minor' ] ) ; } if ( $ this -> myPatchProperty ) { $ this -> project -> setProperty ( $ this -> myPatchProperty , $ this -> myNewVersion [ 'patch' ] ) ; } }
Adds new properties to phing project with data about version number.
Adds new properties to phing project with data about version number .