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

Andreas Bergander commented on MFINDBUGS-163:
---------------------------------------------

Seems like there is a problem when using multiple arguments, or? Since one 
argument works fine, I'm guessing that the arguments are quoted and therefore 
interpreted as one single argument.

{code}
<jvmArgs>-Xms512M -Xmx1024M</jvmArgs>
{code}

produces the following error:

{code}
[INFO] Adding JVM Args => -Xms512M -Xmx1024M
     [java] Invalid initial heap size: -Xms512M -Xmx1024M     [java] Java 
Result: 1

     [java] Error: Could not create the Java Virtual Machine.
     [java] Error: A fatal exception has occurred. Program will exi
{code}

but this works fine:

{code}
<jvmArgs>-Xms512M</jvmArgs>
{code}

                
> Allow system properties to be configured for forked findbugs.
> -------------------------------------------------------------
>
>                 Key: MFINDBUGS-163
>                 URL: https://jira.codehaus.org/browse/MFINDBUGS-163
>             Project: Maven 2.x FindBugs Plugin
>          Issue Type: Wish
>            Reporter: Nicholas Daley
>            Assignee: Garvin LeClaire
>             Fix For: 2.4.1
>
>
> The standard way to configure some findbugs detectors is using system 
> properties.
> At present, it doesn't seem to be possible to set these system properties 
> when using the Maven findbugs plugin.
> The surefire plugin can be configured with system properties: 
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html
> Doing something similar for the findbugs plugin would allow people to set any 
> of the [system properties used by the standard 
> detectors|http://findbugs.sourceforge.net/manual/analysisprops.html]
> or system properties used by 3rd party findbugs plugins.
> (The use case I have, is that I am writing a findbugs plugin, that requires 
> some configuration.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to