classes/phing/tasks/system/DefaultExcludes.php
public function main()
    {
        if (!$this->defaultrequested && $this->add === "" && $this->remove === "" && !$this->echo) {
            throw new BuildException(
                "<defaultexcludes> task must set at least one attribute (echo=\"false\")"
                . " doesn't count since that is the default"
            );
        }
        if ($this->defaultrequested) {
            DirectoryScanner::resetDefaultExcludes();
        }
        if ($this->add !== "") {
            DirectoryScanner::addDefaultExclude($this->add);
        }
        if ($this->remove !== "") {
            DirectoryScanner::removeDefaultExclude($this->remove);
        }
        if ($this->echo) {
            $lineSep = Phing::getProperty('line.separator');
            $message = "Current Default Excludes:";
            $message .= $lineSep;
            $excludes = DirectoryScanner::getDefaultExcludes();
            $message .= "  ";
            $message .= implode($lineSep . "  ", $excludes);
            $this->log($message, $this->logLevel);
        }
    }
public function main()
    {
        if (!$this->defaultrequested && $this->add === "" && $this->remove === "" && !$this->echo) {
            throw new BuildException(
                "<defaultexcludes> task must set at least one attribute (echo=\"false\")"
                . " doesn't count since that is the default"
            );
        }
        if ($this->defaultrequested) {
            DirectoryScanner::resetDefaultExcludes();
        }
        if ($this->add !== "") {
            DirectoryScanner::addDefaultExclude($this->add);
        }
        if ($this->remove !== "") {
            DirectoryScanner::removeDefaultExclude($this->remove);
        }
        if ($this->echo) {
            $lineSep = Phing::getProperty('line.separator');
            $message = "Current Default Excludes:";
            $message .= $lineSep;
            $excludes = DirectoryScanner::getDefaultExcludes();
            $message .= "  ";
            $message .= implode($lineSep . "  ", $excludes);
            $this->log($message, $this->logLevel);
        }
    }
public function main ( ) { if ( ! $ this -> defaultrequested && $ this -> add === "" && $ this -> remove === "" && ! $ this -> echo ) { throw new BuildException ( "<defaultexcludes> task must set at least one attribute (echo=\"false\")" . " doesn't count since that is the default" ) ; } if ( $ this -> defaultrequested ) { DirectoryScanner :: resetDefaultExcludes ( ) ; } if ( $ this -> add !== "" ) { DirectoryScanner :: addDefaultExclude ( $ this -> add ) ; } if ( $ this -> remove !== "" ) { DirectoryScanner :: removeDefaultExclude ( $ this -> remove ) ; } if ( $ this -> echo ) { $ lineSep = Phing :: getProperty ( 'line.separator' ) ; $ message = "Current Default Excludes:" ; $ message .= $ lineSep ; $ excludes = DirectoryScanner :: getDefaultExcludes ( ) ; $ message .= "  " ; $ message .= implode ( $ lineSep . "  " , $ excludes ) ; $ this -> log ( $ message , $ this -> logLevel ) ; } }
Does the work.

@throws BuildException if something goes wrong with the build
Does the work .