totalLength += files[i].length();
}
out.flush();
SpyReader reader = new SpyReader(mainStream.inputStream,paramStreams);
LogFileEngine engine = new LogFileEngine(reader);
ProcessListener listener = new ProcessListener(mainStream, holders, out, totalLength);
engine.addRunnerEventListener(listener);
engine.setOutputDirectory(fileDirectory);
engine.setProcessStackOnObjects(objectsStack);
engine.setProcessStackOnMethods(methodStack);
engine.setUseIteractionsOnOutput(useIteractionsOnOutput);
engine.setProcessReleaseOnObjects(processReleaseObjects);
String methodSignature = request.getParameter("methodSignature");
if (methodSignature!=null && methodSignature.trim().length()>0) {
engine.addDetailMethod(methodSignature); // voltar
}
if (detailedOutput) System.out.println("using detailedOutput");
engine.doProcess(detailedOutput,pid); // nao gera output com os arquivos html.gz
form.setJbpProcess(engine.getProcess());
for (int i=0;i<paramStreams.length;i++) {
paramStreams[i].close();
}
mainStream.inputStream.close();
out.println("<br><b><font size=6>Process Finished.... <a href=\"./processMethods.jsp\">click here</a></font></b>");