You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Kristian Rosenvold <kr...@gmail.com> on 2013/09/27 08:02:56 UTC

To shell or not ?

https://jira.codehaus.org/browse/PLXUTILS-161 had to come up; and we
need a little collective digging down memory lane. (Tha same issue is
present in m-s-u)

Do we rely on shell expansion capabilities in our code ? Can we switch
to Runtime.exec safely ? The mind boggles....

Kristian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: To shell or not ?

Posted by Robert Scholte <rf...@apache.org>.
I hope some unittests can confirm that.

Robert

Op Fri, 27 Sep 2013 15:48:45 +0200 schreef Kristian Rosenvold  
<kr...@gmail.com>:

> I need this with the smallest possible spoon; does Runtime.exec expose
> /more/ of the environment?
>
> Kristian
>
>
>
>
> 2013/9/27 Robert Scholte <rf...@apache.org>:
>> I think the main issue is that we loose control over the  
>> system/environment
>> variables, because all these values will directly be available. Now you  
>> have
>> to explicitly define which of these variables you want to use in the  
>> shell.
>> For the maven-release-plugin I'd like to keep its current behavior, and  
>> I
>> guess you want that for the surefire project as well.
>>
>> Robert
>>
>> Op Fri, 27 Sep 2013 08:02:56 +0200 schreef Kristian Rosenvold
>> <kr...@gmail.com>:
>>
>>> https://jira.codehaus.org/browse/PLXUTILS-161 had to come up; and we
>>> need a little collective digging down memory lane. (Tha same issue is
>>> present in m-s-u)
>>>
>>> Do we rely on shell expansion capabilities in our code ? Can we switch
>>> to Runtime.exec safely ? The mind boggles....
>>>
>>> Kristian
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: To shell or not ?

Posted by Kristian Rosenvold <kr...@gmail.com>.
I need this with the smallest possible spoon; does Runtime.exec expose
/more/ of the environment?

Kristian




2013/9/27 Robert Scholte <rf...@apache.org>:
> I think the main issue is that we loose control over the system/environment
> variables, because all these values will directly be available. Now you have
> to explicitly define which of these variables you want to use in the shell.
> For the maven-release-plugin I'd like to keep its current behavior, and I
> guess you want that for the surefire project as well.
>
> Robert
>
> Op Fri, 27 Sep 2013 08:02:56 +0200 schreef Kristian Rosenvold
> <kr...@gmail.com>:
>
>> https://jira.codehaus.org/browse/PLXUTILS-161 had to come up; and we
>> need a little collective digging down memory lane. (Tha same issue is
>> present in m-s-u)
>>
>> Do we rely on shell expansion capabilities in our code ? Can we switch
>> to Runtime.exec safely ? The mind boggles....
>>
>> Kristian
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: To shell or not ?

Posted by Robert Scholte <rf...@apache.org>.
I think the main issue is that we loose control over the  
system/environment variables, because all these values will directly be  
available. Now you have to explicitly define which of these variables you  
want to use in the shell.
For the maven-release-plugin I'd like to keep its current behavior, and I  
guess you want that for the surefire project as well.

Robert

Op Fri, 27 Sep 2013 08:02:56 +0200 schreef Kristian Rosenvold  
<kr...@gmail.com>:

> https://jira.codehaus.org/browse/PLXUTILS-161 had to come up; and we
> need a little collective digging down memory lane. (Tha same issue is
> present in m-s-u)
>
> Do we rely on shell expansion capabilities in our code ? Can we switch
> to Runtime.exec safely ? The mind boggles....
>
> Kristian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org