Author: tchemit Date: 2010-05-20 13:57:15 +0200 (Thu, 20 May 2010) New Revision: 909 Url: http://nuiton.org/repositories/revision/eugene/909 Log: fix exclude templates Modified: trunk/maven-eugene-plugin/src/main/java/org/nuiton/eugene/plugin/writer/ModelChainedFileWriter.java Modified: trunk/maven-eugene-plugin/src/main/java/org/nuiton/eugene/plugin/writer/ModelChainedFileWriter.java =================================================================== --- trunk/maven-eugene-plugin/src/main/java/org/nuiton/eugene/plugin/writer/ModelChainedFileWriter.java 2010-05-17 16:52:57 UTC (rev 908) +++ trunk/maven-eugene-plugin/src/main/java/org/nuiton/eugene/plugin/writer/ModelChainedFileWriter.java 2010-05-20 11:57:15 UTC (rev 909) @@ -53,7 +53,7 @@ public static final String PROP_GENERATED_PACKAGES = "generatedPackages"; - public static final String PROP_EXCLUDE_TEMPLATES = "excludetemplates"; + public static final String PROP_EXCLUDE_TEMPLATES = "excludeTemplates"; public static final String PROP_TEMPLATES = "templates"; @@ -71,7 +71,7 @@ super( PROP_TEMPLATES, "templates", PROP_TEMPLATES_LIST, "templatesList", - PROP_EXCLUDE_TEMPLATES, "excludetemplates", + PROP_EXCLUDE_TEMPLATES, "excludeTemplates", PROP_READER, "reader", PROP_MODEL_READER, "modelReader", PROP_GENERATED_PACKAGES, "generatedPackages", @@ -207,6 +207,7 @@ templateProperties.put(Template.PROP_VERBOSE, verbose); templateProperties.put(Template.PROP_OVERWRITE, configuration.isOverwrite()); templateProperties.put(Template.PROP_CLASS_LOADER, configuration.getClassLoader()); + templateProperties.put(Template.PROP_EXCLUDE_TEMPLATES, configuration.getProperties().get(PROP_EXCLUDE_TEMPLATES)); String generatedPackages = getGeneratedPackages(); if (StringUtils.isEmpty(generatedPackages)) { @@ -324,8 +325,9 @@ if (configuration.isVerbose()) { getLog().info(" overwrite = " + template.isOverwrite()); - getLog ().info(" encoding = " + template.getEncoding()); + getLog().info(" encoding = " + template.getEncoding()); getLog().info(" lastModifiedSource = " + template.getLastModifiedSource()); + getLog().info(" exclude = " + template.getExcludeTemplates()); } // apply template