[
https://issues.apache.org/jira/browse/MSHARED-969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17256028#comment-17256028
]
Slawomir Jaranowski commented on MSHARED-969:
---------------------------------------------
After my fix we have another feature, we can remove some variable from system
environment.
In method {{getEnvironmentVariables}} first is called {{addSystemEnvironment}}
which copied current system variable to local list, and when variable with the
same name exist it is not copied from system.
Next in {{getEnvironmentVariables}} we filter variables wich have {{null}}
value and in consequence we can filter system variables.
I added unit test to confirm this behavior.
> Environment variable with null value
> ------------------------------------
>
> Key: MSHARED-969
> URL: https://issues.apache.org/jira/browse/MSHARED-969
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-shared-utils
> Affects Versions: maven-shared-utils-3.3.3
> Reporter: Slawomir Jaranowski
> Priority: Major
>
> When we add environment variable with {{null}} value then to executed process
> is pass variable with {{"null"}} as string.
> Variable with {{null}} value should not be set, when executed process will
> try to get this variable will receive {{null}} as we expect.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)