classes/phing/tasks/system/PhingTask.php
private function reinit()
    {
        $this->init();
        $count = count($this->properties);
        for ($i = 0; $i < $count; $i++) {
            /**
             * @var PropertyTask $p
             */
            $p = $this->properties[$i];
            /**
             * @var PropertyTask $newP
             */
            $newP = $this->newProject->createTask("property");
            $newP->setName($p->getName());
            if ($p->getValue() !== null) {
                $newP->setValue($p->getValue());
            }
            if ($p->getFile() !== null) {
                $newP->setFile($p->getFile());
            }
            if ($p->getPrefix() !== null) {
                $newP->setPrefix($p->getPrefix());
            }
            if ($p->getRefid() !== null) {
                $newP->setRefid($p->getRefid());
            }
            if ($p->getEnvironment() !== null) {
                $newP->setEnvironment($p->getEnvironment());
            }
            if ($p->getUserProperty() !== null) {
                $newP->setUserProperty($p->getUserProperty());
            }
            $newP->setOverride($p->getOverride());
            $newP->setLogoutput($p->getLogoutput());
            $newP->setQuiet($p->getQuiet());

            $this->properties[$i] = $newP;
        }
    }
private function reinit()
    {
        $this->init();
        $count = count($this->properties);
        for ($i = 0; $i < $count; $i++) {
            /**
             * @var PropertyTask $p
             */
            $p = $this->properties[$i];
            /**
             * @var PropertyTask $newP
             */
            $newP = $this->newProject->createTask("property");
            $newP->setName($p->getName());
            if ($p->getValue() !== null) {
                $newP->setValue($p->getValue());
            }
            if ($p->getFile() !== null) {
                $newP->setFile($p->getFile());
            }
            if ($p->getPrefix() !== null) {
                $newP->setPrefix($p->getPrefix());
            }
            if ($p->getRefid() !== null) {
                $newP->setRefid($p->getRefid());
            }
            if ($p->getEnvironment() !== null) {
                $newP->setEnvironment($p->getEnvironment());
            }
            if ($p->getUserProperty() !== null) {
                $newP->setUserProperty($p->getUserProperty());
            }
            $newP->setOverride($p->getOverride());
            $newP->setLogoutput($p->getLogoutput());
            $newP->setQuiet($p->getQuiet());

            $this->properties[$i] = $newP;
        }
    }
private function reinit ( ) { $ this -> init ( ) ; $ count = count ( $ this -> properties ) ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { /**
             * @var PropertyTask $p
             */ $ p = $ this -> properties [ $ i ] ; /**
             * @var PropertyTask $newP
             */ $ newP = $ this -> newProject -> createTask ( "property" ) ; $ newP -> setName ( $ p -> getName ( ) ) ; if ( $ p -> getValue ( ) !== null ) { $ newP -> setValue ( $ p -> getValue ( ) ) ; } if ( $ p -> getFile ( ) !== null ) { $ newP -> setFile ( $ p -> getFile ( ) ) ; } if ( $ p -> getPrefix ( ) !== null ) { $ newP -> setPrefix ( $ p -> getPrefix ( ) ) ; } if ( $ p -> getRefid ( ) !== null ) { $ newP -> setRefid ( $ p -> getRefid ( ) ) ; } if ( $ p -> getEnvironment ( ) !== null ) { $ newP -> setEnvironment ( $ p -> getEnvironment ( ) ) ; } if ( $ p -> getUserProperty ( ) !== null ) { $ newP -> setUserProperty ( $ p -> getUserProperty ( ) ) ; } $ newP -> setOverride ( $ p -> getOverride ( ) ) ; $ newP -> setLogoutput ( $ p -> getLogoutput ( ) ) ; $ newP -> setQuiet ( $ p -> getQuiet ( ) ) ; $ this -> properties [ $ i ] = $ newP ; } }
Called in execute or createProperty if newProject is null.

<p>This can happen if the same instance of this task is run
twice as newProject is set to null at the end of execute (to
save memory and help the GC).</p>

<p>Sets all properties that have been defined as nested
property elements.</p>
Called in execute or createProperty if newProject is null .