You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2007/05/29 18:49:59 UTC

[jira] Commented: (MANTTASKS-39) Flattened fileset reference

    [ http://jira.codehaus.org/browse/MANTTASKS-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_97385 ] 

Herve Boutemy commented on MANTTASKS-39:
----------------------------------------

The fileset created by Maven Ant Tasks points to files in the local repository, which are stored with directories.
I don't see how the fileset could be directly flattened: we have to use a mapper, or something like this.
But <war><lib> doesn't support a mapper... stuck!

I looked at o.a.t.a.tasks.War class: 
{code}    public void addLib(ZipFileSet fs) {
        // We just set the prefix for this fileset, and pass it up.
        fs.setPrefix("WEB-INF/lib/");
        super.addFileset(fs);
    }{code}

instead of
{code}// We just set the prefix for this fileset, and pass it up.
fs.setPrefix("WEB-INF/lib/");{code}
I think
{code}// We just set the full path for this fileset, and pass it up.
fs.setFullpath("WEB-INF/lib/");{code}
would do what we are expecting.
The only drawback is that you can't create WEB-INF/lib subdirectories any more with <lib>: I personnally don't think it is a problem, but perhaps somebody will not be ok...

I'll look at Ant bug-tracking system to create an issue...

> Flattened fileset reference
> ---------------------------
>
>                 Key: MANTTASKS-39
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-39
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Sub-task
>            Reporter: Anders Harrisson
>            Priority: Minor
>
> Having the dependency fileset-reference flattened would really simplify some use of it, ie direct reference of the fileset in the lib-element of the War-task.

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