The following document contains the results of PMD's CPD 5.0.2.
File | Line |
---|---|
org/apache/tiles/autotag/generate/AbstractTemplateClassGenerator.java | 81 |
org/apache/tiles/autotag/generate/AbstractTemplateSuiteGenerator.java | 74 |
packageName, suite, clazz, parameters, runtimeClass, requestClass)); Writer writer = new OutputStreamWriter(outputLocator.getOutputStream(filePath)); try { template.merge(context, writer); } finally { writer.close(); } } catch (ResourceNotFoundException e) { throw new AutotagRuntimeException("Cannot find template resource", e); } catch (ParseErrorException e) { throw new AutotagRuntimeException( "The template resource is not parseable", e); } catch (IOException e) { throw new AutotagRuntimeException( "I/O Exception when generating file", e); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new AutotagRuntimeException( "Another generic exception while parsing the template resource", e); } } } /** * Calculates and returns the template path. * * @param packageName The name of the package. * @param suite The template suite. * @param clazz The template class. * @param parameters The map of parameters. * @return The template path. */ protected abstract String getTemplatePath( String packageName, TemplateSuite suite, TemplateClass clazz, Map<String, String> parameters, |