The following comment has been added to this issue:
Author: Oscar Picasso
Created: Fri, 18 Feb 2005 9:03 AM
Body:
I found a solution. I works at least on my configuration.
It seems that passing arguments with a wildcard doesn't work fine so I just
removed the '*' from '${relativeDocsDest}/' in the arg line.
You have to retain the trailing slash though because if you remove it it will
copy not only the content of the source directory but also the directory itself.
The new site:rsyncdeploy would be:
<goal name="site:rsyncdeploy"
description="Deploy the generated site using rsync"
prereqs="site:init,site:remote-deploy-init">
<exec dir="." executable="${maven.ssh.executable}">
<arg line="[EMAIL PROTECTED] 'mkdir -p ${siteDirectory}'" />
</exec>
<maven:makeRelativePath var="relativeDocsDest" path="${docsDest}"
separator="/" basedir="${basedir}" />
<j:if test="${siteClean}">
<echo>Cleaning destination</echo>
<j:set var="rsyncArgs" value="${rsyncArgs} --delete" />
</j:if>
<exec dir="." executable="${maven.rsync.executable}">
<arg line="-avz ${rsyncArgs} ${relativeDocsDest}/ [EMAIL
PROTECTED]:${siteDirectory}"/>
</exec>
</goal>
As you can see the only difference with the current distribution is the removal
of the wildcard.
Oscar
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPSITE-23?page=comments#action_30031
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPSITE-23
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPSITE-23
Summary: Rsync fail
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-site-plugin
Components:
plugin
Versions:
1.6
Assignee:
Reporter: Oscar Picasso
Created: Tue, 15 Feb 2005 5:58 PM
Updated: Fri, 18 Feb 2005 9:03 AM
Environment: OS: linux redhat 8.0
Java: 1.5
Description:
On site:rsyncdeploy, get the following:
[exec] building file list ... done
[exec] link_stat target/docs/* : No such file or directory
[exec] wrote 25 bytes read 20 bytes 90.00 bytes/sec
[exec] rsync error: some files could not be transferred (code 23) at
main.c(620)
[exec] total size is 0 speedup is 0.00
[exec] [ERROR] Result: 23
BUILD SUCCESSFUL
In plugin.jelly I have added some <echo/> to see what could happen:
<echo>${maven.rsync.executable}</echo>
<echo>"-avz ${rsyncArgs} ${relativeDocsDest}/* [EMAIL
PROTECTED]:${siteDirectory}"</echo>
I used the output to launch the command from the shell command line and it
works fine.
I also added <exec dir="." executable="pwd"/> to check it the directory was
correct and it was.
So it seems that all the parameters to execute the rsync are good but the
command failed when used from the plugin.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]