private void collectJvmArguments( List< String > commands )
    {
        if ( parsedJvmArguments != null )
        {
            for ( String jvmArgument : parsedJvmArguments )
            {
                // preserve backward compatibility allowing argument with or without dash (e.g.
                // Xmx512m as well as -Xmx512m should work) (see
                // http://code.google.com/p/maven-android-plugin/issues/detail?id=153)
                if ( !jvmArgument.startsWith( "-" ) )
                {
                    jvmArgument = "-" + jvmArgument;
                }
                commands.add( jvmArgument );
            }
        }
    }
private void collectJvmArguments( List< String > commands )
    {
        if ( parsedJvmArguments != null )
        {
            for ( String jvmArgument : parsedJvmArguments )
            {
                
                
                
                if ( !jvmArgument.startsWith( "-" ) )
                {
                    jvmArgument = "-" + jvmArgument;
                }
                commands.add( jvmArgument );
            }
        }
    }
private void collectJvmArguments ( List < String > commands ) { if ( parsedJvmArguments != null ) { for ( String jvmArgument : parsedJvmArguments ) { // preserve backward compatibility allowing argument with or without dash (e.g. // Xmx512m as well as -Xmx512m should work) (see // http://code.google.com/p/maven-android-plugin/issues/detail?id=153) if ( ! jvmArgument . startsWith ( "-" ) ) { jvmArgument = "-" + jvmArgument ; } commands . add ( jvmArgument ) ; } } }
Convert the jvm arguments in parsedJvmArguments as populated by the config in format as needed by the java
command. Also preserve backwards compatibility in terms of dashes required or not..
Convert the jvm arguments in parsedJvmArguments as populated by the config in format as needed by the java command . Also preserve backwards compatibility in terms of dashes required or not ..