[ 
http://jira.codehaus.org/browse/MECLIPSE-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnaud Heritier updated MECLIPSE-312:
-------------------------------------

    Patch Submitted:   (was: [Yes])

Please submit a patch (diff) and not a modified file. It's difficult to find 
what you changed ..
Thanks for your help

> 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

        

Reply via email to