OK, I see the problem:

In CommandlineJava#addCommandsToList(ListIterator) we have

        //now any assertions are added
        if (getAssertions() != null) {
            getAssertions().applyAssertions(this);
        }

this adds VmArgs to the CommandlineJava instance for the configured
assertions.  It does so each time CommandlineJava#addCommandsToList is
invoked - thus adding new arguments for each invocation.

This method is invoked while the command line is being processed - and
the snippet above comes after the VM arguments have been processed
already.  So it is coming too late in the first invocation and
everything after the second invocation gets redundant arguments.

I assume the code above wanted to invoke Assertions#applyAssertions(List)
inestead of Assertions#applyAssertions(CommandlineJava).  Well, it
probably wanted to invoke Assertions#applyAssertions(ListIterator) if
there was such a method.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to