Allow generic exporter (hbmtemplate) to optionaly add the generated source
folder to the project compile source root folders list
---------------------------------------------------------------------------------------------------------------------------------
Key: MHIBERNATE-12
URL: http://jira.codehaus.org/browse/MHIBERNATE-12
Project: Maven 2.x Hibernate Plugin
Issue Type: Improvement
Environment: Windows XP, java 1.5, Maven version: 2.0.6
Reporter: Matthieu Capelle
Any source code generated by the hbmtemplate won't be compiled by maven since
the target/hibernate3/generic folder is not added to the project compile source
root folders list.
This folder cannot be systematically added to the compile source root folders
since hbmtemplate is not dedicated to the source code generation.
The enhancement consists in adding a boolean component parameter indicating
whether the outputDirectory is a compile source folder or not.
e.g., introduce a configuration/components/component/isCompileSourceRoot
parameter:
<configuration>
<components>
<component>
<name>hbmtemplate</name>
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
<isCompileSourceRoot>true</isCompileSourceRoot>
</component>
</components>
<componentProperties>
<implementation>configuration</implementation>
<filepattern>{package-name}/{class-name}.java</filepattern>
<template>pojo/Pojo.ftl</template>
<jdk5>true</jdk5>
<ejb3>false</ejb3>
</componentProperties>
</configuration>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email