The following comment has been added to this issue:

     Author: Oscar Picasso
    Created: Tue, 15 Feb 2005 10:23 PM
       Body:
I did run site and targets/docs was not empty.

I've with both java 1.5.0 and java 1.4.2 and got the same error.

It's weird because the plugin seem to use the right command.

I added the following to the site:rsync goal.
...
<!-- added -->
    <echo>"${maven.rsync.executable}"</echo>
    <echo>"-avz ${rsyncArgs} ${relativeDocsDest}/* [EMAIL 
PROTECTED]:${siteDirectory}"</echo>
    <exec dir="." executable="pwd"/>
<!-- end added -->
    <exec dir="." executable="${maven.rsync.executable}">
      <arg line="-avz ${rsyncArgs} ${relativeDocsDest}/* [EMAIL 
PROTECTED]:${siteDirectory}"/>
    </exec>
...

The output gave:
site:rsyncdeploy:
    [echo] "rsync"
    [echo] "-avz  target/docs/* [EMAIL PROTECTED]:/tmp/site-test"
    [exec] /home/oscar/workspace/db-je
...

>From the output above I copied and paste to make the following command from 
>the /home/oscar/workspace/db-je directory:

rsync -avz  target/docs/* [EMAIL PROTECTED]:/tmp/site-test 

It worked perfectly.

By the way, what does exec do? Just calling one of the Runtime.exec() method?
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPSITE-23?page=comments#action_29940

---------------------------------------------------------------------
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: Tue, 15 Feb 2005 10:23 PM
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]

Reply via email to