You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "deckrider (JIRA)" <ji...@codehaus.org> on 2009/09/04 21:51:31 UTC
[jira] Created: (MCOMPILER-106) -Xlint
-Xlint:-path argument quoting problem
<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
<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
[jira] Commented: (MCOMPILER-106) -Xlint
-Xlint:-path argument quoting problem
Posted by "deckrider (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189872#action_189872 ]
deckrider commented on MCOMPILER-106:
-------------------------------------
I should have been more specific in the Environment section:
Apache Maven 2.1.0 (r755702; 2009-03-18 13:10:27-0600)
Java version: 1.5.0_20
Java home: /usr/local/lib/jdk1.5.0_20/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.26-2-686" arch: "i386" Family: "unix"
> <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
>
> <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
[jira] Closed: (MCOMPILER-106) -Xlint
-Xlint:-path argument quoting problem
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ 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