Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Fri, 25 Jun 2004 2:39 PM

fixed previously
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPARTIFACT-9

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPARTIFACT-9
    Summary: Execution of ssh commands broken with Unix shell globbing
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-artifact-plugin
   Versions:
             1.0

   Assignee: Brett Porter
   Reporter: Alex Vollmer

    Created: Thu, 22 Jan 2004 5:25 PM
    Updated: Fri, 25 Jun 2004 2:39 PM
Environment: Linux, bash shell, x86 hardware

Description:
When executing the 'artifact:deploy' goal the ssh command that is executed includes a 
number of commands appended to one another with semi-colons. However due to shell 
globbing, all commands after the first semi-colon are executed in the current shell, 
NOT as part of the whole ssh command. This results in strange errors stating that no 
such directory exists (because it's not on my local machine).

Currently it runs:

ssh host -l user mkdir -p /home/httpd/html/maven/stuff/plugins/; chmod g+ws 
/home/httpd/html/maven/stuff/plugins/; chgrp build 
/home/httpd/html/maven/stuff/plugins/

The glob of semi-colon delimited commands should be put inside single-quotes to 
prevent the shell from doing unholy things with the command string.

The command should be:


ssh host -l user 'mkdir -p /home/httpd/html/maven/stuff/plugins/; chmod g+ws 
/home/httpd/html/maven/stuff/plugins/; chgrp build 
/home/httpd/html/maven/stuff/plugins/'


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