"target" for deploy-path shouldnt be a constant
-----------------------------------------------

                 Key: MECLIPSE-307
                 URL: http://jira.codehaus.org/browse/MECLIPSE-307
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: WTP support
    Affects Versions: 2.4, 2.5
         Environment: Windows 2003
            Reporter: Auston McReynolds


If specified in the POM:

<build>
        <sourceDirectory>JavaSource</sourceDirectory>   
        <outputDirectory>AnotherFolder/WEB-INF/classes</outputDirectory>
        <plugins>
                <plugin>
                        <artifactId>maven-eclipse-plugin</artifactId>
                        ...

.settings/org.eclipse.wst.common.component has

<wb-resource deploy-path="WEB-INF/classes" source-path="JavaSource"/>

Instead of

<wb-resource deploy-path="AnotherFolder/WEB-INF/classes" 
source-path="JavaSource"/>

This is due to String target being set to the literal "/WEB-INF/classes" under 
the block:
if ( "war".equalsIgnoreCase( packaging ) )

Instead it seems to me that it should be:
target = IdeUtils.toRelativeAndFixSeparator( config.getProject().getBasedir(), 
buildOutputDirectory, false );

Thanks to Dan and others for assistance received previously!

-- 
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