[ 
https://jira.codehaus.org/browse/MCOMPILER-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277245#comment-277245
 ] 

Robert Scholte commented on MCOMPILER-130:
------------------------------------------

I still doubt whether this should be a legal value or not. If it is, the value 
should be splitted respecting escaped chars and quotes to pass it as separate 
arguments.
On the other hand: the parameter says compilerArgument (singular, not plural) 
so only 1 could be expected.
Right now it seems it is not possible to add more than one argument like this, 
so I'm thinking of _not_ supporting multiple arguments for this parameter.
I'll improve the documentation.

> compilerArgument option doesn't work with maxerrs option, compilerArguments 
> does
> --------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-130
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-130
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Mac OS X
>            Reporter: Mike Dikan
>            Assignee: Robert Scholte
>         Attachments: patch_MCOMPILER-130.txt
>
>
> I looked into using this configuration for maven:
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-compiler-plugin</artifactId>
>   <configuration>
>     <compilerArgument>-Xmaxerrs 1000</compilerArgument>
>   </configuration>
> </plugin>
> But no dice:
> Failure executing javac,  but could not parse the error:
> javac: invalid flag: -Xmaxerrs 1000
> Usage: javac <options> <source files>
> use -help for a list of possible options
> On the command line using javac, the maxerrs flag works as expected, and 
> using the compilerArguments "Map" option works:
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-compiler-plugin</artifactId>
>   <configuration>
>     <fork>true</fork>
>     <compilerArguments>
>       <Xmaxerrs>10</Xmaxerrs>
>     </compilerArguments>
>   </configuration>
> </plugin>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to