Tibor17 commented on PR #523:
URL: https://github.com/apache/maven-surefire/pull/523#issuecomment-1104583550
> > > > @dsubelman `argLine.replaceAll("\\s+", " ");` is nice. The code we
have now still cannot trust the values which have a new line in system
properties, e.g. `-DmyProp=my \n prop` but we cannot do anyting about it
because we do not have smart mechanism to understand the structure of
`argLine`. Till now nobody had any objections. The solution that we have is a
kind of "too technical" but maybe this would stay untill the people would shout
too much.
> > >
> > >
> > > When you say '_maybe this would stay until the people would shout too
much_', do you mean to merge this pull request or not?
> >
> >
> > yes, of course, I would be glad to do that. I only want to open a
discussion and tell you what I am thinking about and I want your opinions to be
heard.
>
> Understood, thanks for the clarification.
>
> Why would you need to use `\n` in system properties? (like in your example
`-DmyProp=my \n prop`) In those cases, if you replace the `\n` with whitespace,
change the behavior? In other words, you may need not remove `\n` in those
cases?
@dsubelman
I don't need `\n` :-) but the users sometimes have crazy requirements. I
just wanted to be prepared with some thoughts, nothing else. ok, we can finish
this PR.
@mthmulders
WDYT about using `argLine.replaceAll("\\s+", " ");` instead of what we have
today?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]