/** * Removed the java and class files for the tag prototype generated from the * current compilation. * * @param classFileName * If non-null, remove only the class file with with this name. */ public void removeProtoTypeFiles(String classFileName) { for (Compiler c : tempVector) { if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals(c.getCompilationContext() .getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype * generated from the current compilation. * @param classFileName If non-null, remove only the class file with * with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals( c.getCompilationContext().getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype * generated from the current compilation. * @param classFileName If non-null, remove only the class file with * with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = (Compiler) iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals( c.getCompilationContext().getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype * generated from the current compilation. * @param classFileName If non-null, remove only the class file with * with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals( c.getCompilationContext().getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype * generated from the current compilation. * @param classFileName If non-null, remove only the class file with * with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals( c.getCompilationContext().getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype * generated from the current compilation. * @param classFileName If non-null, remove only the class file with * with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = (Compiler) iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals( c.getCompilationContext().getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype * generated from the current compilation. * @param classFileName If non-null, remove only the class file with * with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals( c.getCompilationContext().getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype generated from the * current compilation. * * @param classFileName * If non-null, remove only the class file with with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals(c.getCompilationContext() .getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype * generated from the current compilation. * @param classFileName If non-null, remove only the class file with * with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals( c.getCompilationContext().getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype generated from the * current compilation. * * @param classFileName * If non-null, remove only the class file with with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals(c.getCompilationContext() .getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype generated from the * current compilation. * * @param classFileName * If non-null, remove only the class file with with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = (Compiler) iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals(c.getCompilationContext() .getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype generated from the * current compilation. * * @param classFileName * If non-null, remove only the class file with with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals(c.getCompilationContext() .getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype generated from the * current compilation. * * @param classFileName * If non-null, remove only the class file with with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = (Compiler) iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals(c.getCompilationContext() .getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Removed the java and class files for the tag prototype generated from the * current compilation. * * @param classFileName * If non-null, remove only the class file with with this name. */ public void removeProtoTypeFiles(String classFileName) { Iterator<Compiler> iter = tempVector.iterator(); while (iter.hasNext()) { Compiler c = iter.next(); if (classFileName == null) { c.removeGeneratedClassFiles(); } else if (classFileName.equals(c.getCompilationContext() .getClassFileName())) { c.removeGeneratedClassFiles(); tempVector.remove(c); return; } } } }
/** * Remove generated files */ public void removeGeneratedFiles() { removeGeneratedClassFiles(); try { File javaFile = new File(ctxt.getServletJavaFileName()); if (log.isDebugEnabled()) { log.debug("Deleting " + javaFile); } if (javaFile.exists()) { if (!javaFile.delete()) { JasperLogger.COMPILER_LOGGER.failedToDeleteGeneratedFile(javaFile); } } } catch (Exception e) { // Remove as much as possible, log possible exceptions JasperLogger.COMPILER_LOGGER.failedToDeleteGeneratedFiles(e); } }
/** * Remove generated files */ public void removeGeneratedFiles() { removeGeneratedClassFiles(); try { File javaFile = new File(ctxt.getServletJavaFileName()); if (log.isDebugEnabled()) log.debug("Deleting " + javaFile); if (javaFile.exists()) { if (!javaFile.delete()) { log.warn(Localizer.getMessage( "jsp.warning.compiler.javafile.delete.fail", javaFile.getAbsolutePath())); } } } catch (Exception e) { // Remove as much as possible, log possible exceptions log.warn(Localizer.getMessage("jsp.warning.compiler.classfile.delete.fail.unknown"), e); } }
/** * Remove generated files */ public void removeGeneratedFiles() { removeGeneratedClassFiles(); try { String javaFileName = ctxt.getServletJavaFileName(); if (javaFileName != null) { File javaFile = new File(javaFileName); if (log.isDebugEnabled()) log.debug("Deleting " + javaFile); if (javaFile.exists()) { if (!javaFile.delete()) { log.warn(Localizer.getMessage( "jsp.warning.compiler.javafile.delete.fail", javaFile.getAbsolutePath())); } } } } catch (Exception e) { // Remove as much as possible, log possible exceptions log.warn(Localizer.getMessage("jsp.warning.compiler.classfile.delete.fail.unknown"), e); } }
/** * Remove generated files */ public void removeGeneratedFiles() { removeGeneratedClassFiles(); try { String javaFileName = ctxt.getServletJavaFileName(); if (javaFileName != null) { File javaFile = new File(javaFileName); if (log.isDebugEnabled()) log.debug("Deleting " + javaFile); if (javaFile.exists()) { if (!javaFile.delete()) { log.warn(Localizer.getMessage( "jsp.warning.compiler.javafile.delete.fail", javaFile.getAbsolutePath())); } } } } catch (Exception e) { // Remove as much as possible, log possible exceptions log.warn(Localizer.getMessage("jsp.warning.compiler.classfile.delete.fail.unknown"), e); } }