[
http://jira.codehaus.org/browse/MHIBERNATE-34?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim O'Brien closed MHIBERNATE-34.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0-alpha-3
I've commited the necessary changes to HibernateExporterMojo and Component.
I've also updated the site documentation. Done.
> Allow generic exporter (hbmtemplate) to optionaly add the generated source
> folder to the project compile source root folders list
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: MHIBERNATE-34
> URL: http://jira.codehaus.org/browse/MHIBERNATE-34
> Project: Maven 2.x Hibernate Plugin
> Issue Type: Bug
> Environment: Windows XP, java 1.5, Maven version: 2.0.6
> Reporter: Matthieu Capelle
> Assignee: Tim O'Brien
> Fix For: 2.0-alpha-3
>
>
> 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