classes/phing/Target.php
public function setDepends($depends)
    {
        // explode should be faster than strtok
        $deps = explode(',', $depends);
        for ($i = 0, $size = count($deps); $i < $size; $i++) {
            $trimmed = trim($deps[$i]);
            if ($trimmed === "") {
                throw new BuildException(
                    "Syntax Error: Depend attribute for target " . $this->getName() . " is malformed."
                );
            }
            $this->addDependency($trimmed);
        }
    }
public function setDepends($depends)
    {
        // explode should be faster than strtok
        $deps = explode(',', $depends);
        for ($i = 0, $size = count($deps); $i < $size; $i++) {
            $trimmed = trim($deps[$i]);
            if ($trimmed === "") {
                throw new BuildException(
                    "Syntax Error: Depend attribute for target " . $this->getName() . " is malformed."
                );
            }
            $this->addDependency($trimmed);
        }
    }
public function setDepends ( $ depends ) { // explode should be faster than strtok $ deps = explode ( ',' , $ depends ) ; for ( $ i = 0 , $ size = count ( $ deps ) ; $ i < $ size ; $ i ++ ) { $ trimmed = trim ( $ deps [ $ i ] ) ; if ( $ trimmed === "" ) { throw new BuildException ( "Syntax Error: Depend attribute for target " . $ this -> getName ( ) . " is malformed." ) ; } $ this -> addDependency ( $ trimmed ) ; } }
Sets the target dependencies from xml

@param  string $depends Comma separated list of targetnames that depend on
this target
@throws BuildException
Sets the target dependencies from xml