Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sisu-users] Comma inside CMD parameter

Hi Lars,

That's the original Plexus behaviour - you can have commas inside elements configured in XML but not on the command-line.

But that behaviour is not set in stone, so if you want to suggest a way to safely encode commas inside elements on the command-line then you can open a feature request at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sisu&component=Plexus

--
Cheers, Stuart

On Mon, 11 Nov 2019 at 08:52, Lars Knickrehm <mail@xxxxxxxxxx> wrote:

Hello everyone,

I came accross the sisu project as it's part of Maven.

Mojos can be called via command line, passing parameters prefix by "-D". The parameters value is parsed based on the Mojo parameters type, automatically handling e.g. strings and array. When using an array of strings, the item are separated by comma.

I noticed, that there seems to be no way to pass a comma to an items value that way. In the code I ended up at https://github.com/eclipse/sisu.plexus/blob/master/org.eclipse.sisu.plexus/src/org/codehaus/plexus/component/configurator/converters/composite/AbstractCollectionConverter.java#L121 .

Is that a planned behavior?

-- 
Best regards,
Lars Knickrehm

www.lars-sh.de
_______________________________________________
sisu-users mailing list
sisu-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sisu-users

Back to the top