Path appDir = getAppDir();
for (int i = 0; i < depends.size(); i++) {
PersistentDependency dependency = depends.get(i);
if (dependency instanceof Depend) {
Depend depend = (Depend) dependency;
if (depend.getPath().isDirectory())
continue;
out.print("depend = new com.caucho.vfs.Depend(");
printPathDir(out, depend, depend.getPath().getFullPath(),
appDir, classPath);
out.println(", " + depend.getDigest() + "L, " +
_requireSource + ");");
// out.println("com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);");
out.println("_caucho_depends.add(depend);");
}
else {
/*
out.print("com.caucho.jsp.JavaPage.addDepend(_caucho_depends, ");
out.print(dependency.getJavaCreateString());
out.println(");");
*/
out.print("_caucho_depends.add(");
out.print(dependency.getJavaCreateString());
out.println(");");
}
}
if (_isCacheable && ! _isUncacheable) {
for (int i = 0; i < _cacheDepends.size(); i++) {
Depend depend = _cacheDepends.get(i);
if (depend.getPath().isDirectory())
continue;
out.print("depend = new com.caucho.vfs.Depend(");
printPathDir(out, depend, depend.getPath().getFullPath(),
appDir, classPath);
out.println(", \"" + depend.getDigest() + "\", " +
_requireSource + ");");
out.println("_caucho_cacheDepends.add((Object) depend);");
}
}
out.popDepth();