Sets the set of include patterns. Patterns may be separated by a comma
or a space.

@param  $includes
@throws BuildException
487427
public function setIncludes($includes)
    {
        if ($this->isReference()) {
            throw $this->tooManyAttributes();
        }
        $this->defaultPatterns->setIncludes($includes);
    }
661292
public void setIncludes(String includes) {

        // Split the string into separate file globs.
        String[] globs = includes.split("[\\s,]+");

        // Loop over these globs and create dirsets from them.
        // Do not set the root directory until the task is
        // executed.
        for (String glob : globs) {
            DirSet dirset = new DirSet();
            dirset.setIncludes(glob);
            this.includes.add(dirset);
        }
    }
783775
public function includeTables($includeTables)
    {
        if (! empty($this->excludeTables)) {
            throw CannotSetParameter::conflictingParameters('includeTables', 'excludeTables');
        }

        if (! is_array($includeTables)) {
            $includeTables = explode(', ', $includeTables);
        }

        $this->includeTables = $includeTables;

        return $this;
    }
950301
public function setIncludePath($paths)
	{
		if (is_array($paths) === false) {
			$paths = array($paths);
		}

		$this->includePath = $paths;
		$this->resolvedPath = null;
	}
964088
public function setIncludeBoundary($includeBoundary)
    {
        if (is_bool($includeBoundary)) {
            $this->includeBoundary = $includeBoundary;
        } else {
            $msg = "IncludeBoudary must be a boolean value, '" . gettype($includeBoundary) . "' given";
            throw new InvalidArgumentException($msg);
        }
    }
1301029
public function handleExcludePatternAnnotation($e)
    {
        $annotation = $e->getParam('annotation');
        if (!$annotation instanceof Annotation\ExcludePattern) {
            return;
        }
    
        $serviceSpec = $e->getParam('serviceSpec');
        $serviceSpec['exclude_patterns'] = (array) $annotation->getExcludePattern();
    }
268931
public function setTo($to)
    {
        if ($to === null) {
            throw new BuildException("this mapper requires a 'to' attribute");
        }

        $index = strrpos($to, '*');
        if ($index === false) {
            $this->toPrefix = $to;
            $this->toPostfix = "";
        } else {
            $this->toPrefix = substr($to, 0, $index);
            $this->toPostfix = substr($to, $index + 1);
            $this->toContainsStar = true;
        }
    }
853339
public void setTagsToExcludeFromChart(String... patterns) {
        for (String pattern : patterns) {
            try {
                tagsToExcludeFromChart.add(Pattern.compile(pattern));
            } catch (PatternSyntaxException e) {
                throw new ValidationException(e);
            }
        }
    }
141218
protected function parseExcludes()
    {
        if ($this->query->has('excludes')) {
            $this->query->setExcludes(
                explode(',', $this->query->getRaw('excludes'))
            );
        }
    }
1236732
public function setExcludes($excludes)
    {
        $this->excludes = [];

        if (is_string($excludes)) {
            $excludes = explode(',', $excludes);
        }

        if (!is_array($excludes)) {
            throw new \InvalidArgumentException(
                'The parseExcludes() method expects a string or an array. ' . gettype($excludes) . ' given'
            );
        }

        foreach ($excludes as $excludeName) {
            $excludeName = $this->trimToAcceptableRecursionLevel($excludeName);

            if (in_array($excludeName, $this->excludes)) {
                continue;
            }

            $this->excludes[] = $excludeName;
        }

        return $this;
    }
877560
public function setExcludePackages($excludePackages)
    {
        $this->excludePackages = [];

        $token = ' ,;';
        $pattern = strtok($excludePackages, $token);

        while ($pattern !== false) {
            $this->excludePackages[] = $pattern;
            $pattern = strtok($token);
        }
    }
1208019
public function setFormats($formats)
    {
        if ($formats instanceof FormatInterface) {
            $formats = [$formats];
        }

        foreach ($formats as $name => $format) {
            $this->setFormat($name, $format);
        }
    }
99735
protected function normalizeIncludesOrExcludes($includesOrExcludes = '')
    {
        if (! is_string($includesOrExcludes)) {
            return $includesOrExcludes;
        }

        return array_map(function ($value) {
            return trim($value);
        }, explode(',', $includesOrExcludes));
    }
185659
protected function includes($includes)
    {
        $includes = \is_array($includes) ? $includes : \func_get_args();

        $this->includes = $includes;

        return $this;
    }
992150
public function excludes($excludes)
    {
        if (is_string($excludes)) {
            $excludes = explode(',', $excludes);
        }

        // when autoload is enable, we need to merge user requested includes with the predefined includes.
        if ($this->autoload and $this->request->get($this->exclude_key)) {
            $excludes = array_merge($excludes, explode(',', $this->request->get($this->exclude_key)));
        }

        $this->manager->parseExcludes($excludes);

        return $this;
    }
46861
public function setExcludesFile($excludesFile)
    {
        if ($this->isReference()) {
            throw $this->tooManyAttributes();
        }
        if ($excludesFile instanceof PhingFile) {
            $excludesFile = $excludesFile->getPath();
        }
        $o = $this->createExcludesFile();
        $o->setName($excludesFile);
    }
672589
protected function process(array $include)
    {
        $process = [
            self::TITLE,
            self::ROBOTS,
            self::ICONS,
            self::CHARSET,
            self::COMPAT,
            self::VIEWPORT,
            self::URL,
            self::LOC,
            self::DESC,
            self::IMG
        ];

        foreach ($include as $inc) {
            if (in_array($inc, $process)) {
                $this->{$inc}()->process();
            }
        }

        return $this;
    }