public function getVendorPaths()
    {
        $base  = dirname($this->path);
        $paths = [];
        foreach ($this->xml->xpath('/libraries/library/location') as $location) {
            $location = trim((string) $location, '/');
            $location = $base.'/'.$location;

            if (strpos($location, '*') !== false) {
                $locations = glob($location);
                if (empty($locations)) {
                    throw new \RuntimeException(sprintf('Failed to run glob on path: %s', $location));
                }
                $paths = array_merge($paths, $locations);
            } elseif (!file_exists($location)) {
                throw new \RuntimeException(sprintf('The %s contains a non-existent path: %s', $this->path, $location));
            } else {
                $paths[] = $location;
            }
        }

        return $paths;
    }