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

Dennis Lundberg closed MSITE-285.
---------------------------------

    Resolution: Won't Fix

As mentioned in an earlier comment, this has been fixed in wagon. So there is 
no need to work around it in the site plugin.

> support FTP copy by copying files one at a time
> -----------------------------------------------
>
>                 Key: MSITE-285
>                 URL: http://jira.codehaus.org/browse/MSITE-285
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>            Reporter: Ryan Sonnek
>
> since the wagon ftp plugin does not support directory copy, the maven site 
> plugin should "work around" this by copying the files one at a time.  This is 
> very trivial to do in wagon and I did the same thing for my 
> webstart-maven-plugin
> http://www.jroller.com/wireframe/entry/deploy_maven_webstart_projects
> {code}
>                       if (!wagon.supportsDirectoryCopy()) {
>                               getLog().warn("Unable to copy directories using 
> the specified protocol: " + url);
>                               getLog().info("Attempting to transfer 
> individual files to remote server.");
>                               File[] files = workDirectory.listFiles();
>                               for (int x = 0; x < files.length; x++) {
>                                       File file = files[x];
>                                       wagon.put(file, file.getName());
>                               }
>                       } else {
>                               wagon.putDirectory(workDirectory, ".");
>                       }
> {code}

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