You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2008/07/20 14:53:26 UTC
[jira] Commented: (MSITE-285) support FTP copy by copying files one
at a time
[ http://jira.codehaus.org/browse/MSITE-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142498#action_142498 ]
Dennis Lundberg commented on MSITE-285:
---------------------------------------
I believe that WAGON-148 has solved this. It is available in Wagon 1.0-beta-3.
> 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