David Phillips created MCOMPILER-425:
----------------------------------------
Summary: Compiler argument with newline treated as multiple
arguments in fork mode
Key: MCOMPILER-425
URL: https://issues.apache.org/jira/browse/MCOMPILER-425
Project: Maven Compiler Plugin
Issue Type: Bug
Affects Versions: 3.8.1
Reporter: David Phillips
In the below example, we want to pass the second argument as a single argument
to the compiler, but we add newlines in the XML for readability. This works
correctly when not forking, but when forking, the argument is treated as
multiple arguments.
{code:xml}
<configuration>
<fork>true</fork>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>
-Xplugin:ErrorProne
-Xep:ObjectToString:ERROR
</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.4.0</version>
</path>
</annotationProcessorPaths>
</configuration>
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)