Support specifying output directory for generated resources
-----------------------------------------------------------
Key: MCASTOR-31
URL: http://jira.codehaus.org/browse/MCASTOR-31
Project: Maven 2.x Castor Plugin
Issue Type: Wish
Components: Core MOJOs
Affects Versions: 1.5
Reporter: Stevo Slavic
Priority: Minor
Generate goal generates all files (.java and .castor.cdr files) in directory
configurable by dest parameter. IMO it would be better if one could configure
additional parameter, e.g. resourcesOutputDirectory, to be able to separate
Java sources from castor resources. To be backward compatible this new
parameter could have default value equal to dest parameter.
Both .class (from generated .java files) and .castor.cdr files are needed at
runtime. To get generated Java classes added one can use
build-helper-maven-plugin:add-source and configure source folder to be equal to
dest of castor-maven-plugin. With just this, .castor.cdr files would not end up
discovered as resources. So to get cator-maven-plugin generated resources
discovered as resources either maven-resources-plugin needs to be configured
(one has to be careful not to forget default resources), or
build-helper-maven-plugin - maven-assembly-plugin combination can be used. If
there was this additional parameter in castor-maven-plugin generate goal, one
could just configure build-helper-maven-plugin:add-resource plugin.
--
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