packageName = packageName.replace(File.separator, ".");
String fileName = jarEntryName.substring(staticDirPos + ClassPathStaticDispatcher.STATIC_DIR_NAME.length());
File targetFile = new File(classPathStaticDir, packageName + fileName);
// Only do this if it does not already exist.
// Use jar file last modified instead of jarEntry.getTime, seems to be unpredictable
if (targetFile.exists() && targetFile.lastModified() >= sourceFile.lastModified()) {
if (isLogDebugEnabled()) logDebug("Skipping static file from jar, filename::" + jarEntryName + " in jar::" + jar.getName()
+ " - does already exist", null);
} else {
targetFile.getParentFile().mkdirs();
BufferedInputStream inputStream = new BufferedInputStream(jar.getInputStream(jarEntry));