/** * Determines if each pack is to be included in a separate jar. * * @return <tt>true</tt> if {@link Info#getWebDirURL()} is non-null */ protected boolean packSeparateJars() { return info != null && info.getWebDirURL() != null; }
/** * Returns the stream to a resource. * * @param name the resource name * @return a stream to the resource * @throws ResourceNotFoundException if the resource cannot be found * @throws ResourceInterruptedException if resource retrieval is interrupted * @throws ResourceException for any other resource error */ @Override public InputStream getPackStream(String name) { InputStream result; String webDirURL = installData.getInfo().getWebDirURL(); if (webDirURL == null) { result = getLocalPackStream(name); } else { result = getWebPackStream(name, webDirURL); } return result; }
try String webDir = installData.getInfo().getWebDirURL();