slachiewicz opened a new pull request, #88:
URL: https://github.com/apache/maven-executor/pull/88

   The tool provider matched `-MEX-` arguments by name prefix only. An argument 
without `=value` threw `StringIndexOutOfBoundsException`, or 
`NullPointerException` for a bare `env` or `jsp` key, and 
`-MEX-jvm=-Dkey=value` reached Maven as `-Dkey`, in no particular order. A 
missing value now returns `-200` like any unknown `-MEX-` argument, a bare 
`env` or `jsp` key sets an empty value, and `-MEX-cwdx=1` is no longer read as 
`cwd`. Giving `mavenHome`, `cmd` or `cwd` twice with different values still 
returns `-200`.
   
   No unit test: the provider is the Java 9 variant of a multi-release class, 
which the test class path does not see.
   
   Verified: `ToolProvider.findFirst("maven-executor")` on the packaged jar 
with `-MEX-mavenHome` → `rc=-200` (`main`: `StringIndexOutOfBoundsException`); 
with `-MEX-jvm=-Dprobe=one help:evaluate -Dexpression=probe` → `one` (`main`: 
empty).
   
   Part of #16 (items 3, 4 and 12).
   
   ---
   
   To make clear that you license your contribution under
   the [Apache License Version 2.0, January 
2004](https://www.apache.org/licenses/LICENSE-2.0)
   check one of the following:
   
   - [ ] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [x] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   


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

Reply via email to