You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Tran (JIRA)" <ji...@codehaus.org> on 2007/11/29 01:41:57 UTC
[jira] Closed: (MECLIPSE-312) WebContent folder linked to webapp
folder is not generated
[ http://jira.codehaus.org/browse/MECLIPSE-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Tran closed MECLIPSE-312.
-----------------------------
Resolution: Won't Fix
> WebContent folder linked to webapp folder is not generated
> ----------------------------------------------------------
>
> Key: MECLIPSE-312
> URL: http://jira.codehaus.org/browse/MECLIPSE-312
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: WTP support
> Environment: Maven 2, Linux & Windows
> Reporter: Cyril JOUI
> Attachments: EclipseProjectWriter.java, EclipseWtpComponentWriter.java
>
>
> When I generate a eclipse project with wtpsupport, maven plugin doesn't create a WebContent folder in web project.
> Configuration part in eclipse is:
> in org.eclipse.wst.common.component:
> <wb-resource deploy-path="/" source-path="/WebContent"/>
> and /WebContent is refered by:
> <link>
> <name>WebContent</name>
> <type>2</type>
> <location>/..../rpf/dev/modules/rpf-gateway/src/main/webapp</location>
> </link>
> in .project file
> I made modification on EclipseProjectWriter:
> // if war project (add WebContent => webapp)
> if ("war".equals(config.getProject().getPackaging())) {
> addLink (writer, "WebContent",
> config.getProject().getBasedir() + "/src/main/webapp", LINK_TYPE_DIRECTORY);
> }
> And
> writer.startElement( ELT_WB_RESOURCE );
> writer.addAttribute( ATTR_DEPLOY_PATH, "/" ); //$NON-NLS-1$
> writer.addAttribute( ATTR_SOURCE_PATH, "/WebContent");
> /*
> writer.addAttribute( ATTR_SOURCE_PATH, IdeUtils
> .toRelativeAndFixSeparator( config.getEclipseProjectDirectory(), warSourceDirectory, false ) );
> */
> writer.endElement();
> in EclipseWtpComponentWriter
--
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