The problem is we look for ../core/src/main/hibernate.cfg.xml in the
AMP plugin. However, looking at the code, it looks like we may no
longer hard-code the module name:
// for war projects that have a parent pom, don't reset classpath
// this is to allow using hibernate.cfg.xml from core module
if (getProject().getPackaging().equals("war") &&
getProject().hasParent()) {
// assume first module in parent project has hibernate.cfg.xml
String moduleName = (String)
getProject().getParent().getModules().get(0);
String pathToParent =
getProject().getOriginalModel().getParent().getRelativePath();
pathToParent = pathToParent.substring(0,
pathToParent.lastIndexOf('/') + 1);
log("Assuming '" + moduleName + "' has hibernate.cfg.xml
in its src/main/resources directory");
getComponentProperties().put("configurationfile",
getProject().getBasedir() + "/" + pathToParent +
moduleName + "/src/main/resources/hibernate.cfg.xml");
}
Matt
On Wed, Jul 30, 2008 at 6:50 AM, Kinski <[EMAIL PROTECTED]> wrote:
>
> You have previously stated that AMP does not currently support renaming your
> core module. Is it possible to rename the web module and use appfuse:gen-web
> (I am assuming it should be given that one of the principle ideas behind the
> modular structure is to support multiple front ends) ?
>
>
> -----
> Regards,
>
> Matthew
> --
> View this message in context:
> http://www.nabble.com/appfuse%3Agen-web-tp18732501s2369p18732501.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]