[ 
http://jira.codehaus.org/browse/MGWT-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=270038#action_270038
 ] 

Constantino Cronemberger commented on MGWT-293:
-----------------------------------------------

In fact both issues are the same. If you look in WEB-INF of the target 
directory you will not find web.xml or any other file that is in WEB-INF source 
directory. In this case the impression is that the files are not copied, but 
they are in fact copied to the root of the web application.

This happens because FileUtils.copyDirectory copies all files disregarding the 
directory structure.

Locally I have fixed it by replacing this call to 
copyDirectoryStructureIfModified. The only problem with this "fix" is that is 
also copies all SVN files.




> src/main/webapp file hierarchy is flattened with copyWebapp instead of 
> preserving the hierarchy leaving web.xml at top level rather than in WEB-INF
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MGWT-293
>                 URL: http://jira.codehaus.org/browse/MGWT-293
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>            Reporter: Gabe Beged-Dov
>
> In the 2.3.0-SNAPSHOT, copyWebapp flattens the hierarchy in src/main/webapp 
> when copying to the destination. This puts the web.xml at the root level 
> rather than in WEB-INF/web.xml. This seems to be an issue with the plexus 
> fileUtil call which takes the filtered list of files that aren't excluded and 
> copies them to the destination directory without preserving the relative 
> hierarchy.
> The workaround I've found is to use war:exploded but this is not optimal. 
> This may be related to http://jira.codehaus.org/browse/MGWT-235 which is 
> shown as closed...

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


Reply via email to