[ http://jira.codehaus.org/browse/MRELEASE-92?page=comments#action_63513 ] 

Emmanuel Venisse commented on MRELEASE-92:
------------------------------------------

I'm not sure this patch is correct. If a line doesn't include "=" that mean 
previous env var have a carriage return so the line must be added to previous 
key.

> PerformMojo throws an error if there are no process args
> --------------------------------------------------------
>
>          Key: MRELEASE-92
>          URL: http://jira.codehaus.org/browse/MRELEASE-92
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-5
>  Environment: winxp, maven 2.0.4
>     Reporter: Daun DeFrance
>  Attachments: MRELEASE-92.patch
>
>
> While reading the process, PerformReleasMojo.getSystemEnvVars looks for an 
> '=' and then tries to get substrings on either side to form key/value 
> properties.  Under my environment, the index of '=' is -1 and the code does 
> not guard before trying to grab a substring with this index.
> I will attach the diff file of the (very minor) fix to workaround this 
> problem.

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

Reply via email to