public function getJsBundlePath()
{
$cacheDir = $this->getJsCachePath();
if ($this->isRelativePath($cacheDir)) {
$cacheDir = $this->getDocRoot() . DIRECTORY_SEPARATOR . $cacheDir;
}
$name = $this->getName();
if (null === $name) {
$name = sprintf('bundle_%s', $this->getJsFileList()->getHash());
} elseif (strpos($name, '%s') !== false) {
$name = sprintf($name, $this->getJsFileList()->getHash());
}
return sprintf("%s%s%s.js", $cacheDir, DIRECTORY_SEPARATOR, $name);
}