[ http://jira.codehaus.org/browse/MNG-1524?page=comments#action_51655 ] 

Chad Berghorst commented on MNG-1524:
-------------------------------------

After talking with another Maven Ant task user (Dave Brondsema), we've 
determined that Ant's FileList getFiles() method throws an exception instead of 
an empty String array when no files are specified.  For testing purposes, I 
made the following changes to DependenciesTask.java to avoid this exception.  I 
didn't create a patch because this code isn't the cleanest.  

        FileList fileList = new FileList();
        boolean fileListElementsAdded = false;
        ...

            for ( Iterator i = result.getArtifacts().iterator(); i.hasNext(); )
            {
                fileList.addConfiguredFile( file );
                fileListElementsAdded = true;
            }
        ...

        if ( pathId != null )
        {
            Path path = new Path( getProject() );
            if (fileListElementsAdded) {
                path.addFilelist( fileList );
            }
            getProject().addReference( pathId, path );
        }


> artifact:dependencies related error: No files specified for filelist
> --------------------------------------------------------------------
>
>          Key: MNG-1524
>          URL: http://jira.codehaus.org/browse/MNG-1524
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0
>     Reporter: Chad Berghorst

>
>


-- 
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, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to