You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/09/04 13:58:33 UTC
[jira] Closed: (MCOMPILER-106) -Xlint
-Xlint:-path argument quoting problem
[ http://jira.codehaus.org/browse/MCOMPILER-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MCOMPILER-106.
---------------------------------------
Resolution: Duplicate
Assignee: Benjamin Bentmann
> <compilerArgument>-Xlint -Xlint:-path</compilerArgument> argument quoting problem
> ---------------------------------------------------------------------------------
>
> Key: MCOMPILER-106
> URL: http://jira.codehaus.org/browse/MCOMPILER-106
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: java version "1.5.0_20"
> Reporter: deckrider
> Assignee: Benjamin Bentmann
>
> <compilerArgument>-Xlint -Xlint:-path</compilerArgument> gives the following error:
> javac: invalid flag: -Xlint -Xlint:-path
> The workaround/hack illustrates the quoting problem:
> <compilerArgument>-Xlint" "-Xlint:-path</compilerArgument>
> And now to quote the docs at http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgument
> Sets the unformatted argument string to be passed to the compiler if fork is set to true. This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira