ArrayList<Depend> styleDepends = null;
if (ss != null)
styleDepends = (ArrayList) ss.getProperty(StylesheetImpl.DEPENDS);
for (int i = 0; styleDepends != null && i < styleDepends.size(); i++) {
Depend depend = styleDepends.get(i);
Depend jspDepend = new Depend(depend.getPath(),
depend.getLastModified(),
depend.getLength());
jspDepend.setRequireSource(true);
if (! depends.contains(jspDepend))
depends.add(jspDepend);
}
// Fill the page dependency information from the document into
// the jsp page.
ArrayList<Path> docDepends;
docDepends = (ArrayList) doc.getProperty(CauchoDocument.DEPENDS);
for (int i = 0; docDepends != null && i < docDepends.size(); i++) {
Path depend = docDepends.get(i);
Depend jspDepend = new Depend(depend);
if (! depends.contains(jspDepend))
depends.add(jspDepend);
}
// stylesheet cache dependencies are normal dependencies for JSP
ArrayList<Path> cacheDepends = null;
TransformerImpl xform = null;
if (transformer instanceof TransformerImpl)
xform = (TransformerImpl) transformer;
if (xform != null)
cacheDepends = (ArrayList) xform.getProperty(TransformerImpl.CACHE_DEPENDS);
for (int i = 0; cacheDepends != null && i < cacheDepends.size(); i++) {
Path depend = cacheDepends.get(i);
Depend jspDepend = new Depend(depend);
if (! depends.contains(jspDepend))
depends.add(jspDepend);
}
ServletConfig config = null;