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

Kenney Westerhof commented on MNG-476:
--------------------------------------

I've got the same issues and concurrency could very well be the cause.
The silent failing of previous commands can be avoided by using '&&' instead of 
';'.

So:

cmd = " cd " + basedir + " && " + unzipCommand + " " + zipFile.getName() + " && 
" + "rm  " + basedir + "/" + zipFile.getName() + "\n";

(&& only executes next command if previous command's exit code was 0). This 
assumes a UNIX like remote system,
though the 'unzip' utility isn't readily available on windows either so I guess 
this isn't a problem?

> site:deploy only partially deploys site
> ---------------------------------------
>
>          Key: MNG-476
>          URL: http://jira.codehaus.org/browse/MNG-476
>      Project: Maven 2
>         Type: Bug
>   Components: maven-plugins
>     Versions: 2.0-alpha-2
>  Environment: Windows XP for local run
> IBM AIX for deployment server
>     Reporter: Yann Le Du
>     Assignee: Brett Porter
>      Fix For: 2.0-alpha-3
>  Attachments: fix.txt, log1.txt, log2.txt
>
>
> I have forged a site in target/site (since site:site doesn't work yet, see 
> http://jira.codehaus.org/browse/MNG-389). Here is what I get when I try to 
> deploy it : log1.txt
> When I look in //server/home/user, the directory www/docs/foo is created, but 
> it's either empty, either incomplete (it depends).
> My guess is that these two commands :
>    cd /home/user/www/docs/foo/;unzip -o site6665.zip
>    rm  /home/user/www/docs/foo//site6665.zip
> were running concurrently, and the ZIP file was deleted before unzip was 
> finished.
> To check this, I have tried to pause the process at different points, and 
> here is the result : log2.txt
> I've tried to check out the Maven source code to fix and build it at my 
> place, but I got a lot of error messages at compile-time, so I gave up :)
> Here is the fix that I would have tried (I didn't make a diff since I'm not 
> sure of the fix) : fix.txt

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