Emmanuel, Miguel, On Wed, 2015-07-29 at 09:57 +0200, Emmanuel Bourg wrote: > Le 29/07/2015 03:35, Miguel Landaeta a écrit : > > > Since you have worked upstream with libcommons-cli-java, I hope to > > don't bother you with this help request. > > commons-cli provides several parsers with different behaviors. Up to > 1.2 > there was a gnu and a posix parsers, and starting with 1.3 I > introduced > a new unified parser (DefaultParser). You may try using it, it's just > a > matter of changing the instantiation and it's likely to work better.
As far as I am aware, the Apache Groovy source explicitly imports and uses the GnuParser – even now despite it being deprecated – as part of the CliBuilder class. All other uses of org.apache.commons.cli in the Apache Groovy source use DefaultParser. If I remember correctly, DefaultParser, which is PosixParser I believe, enforces bursting of single hyphen options, which is fine for the Groovy command line, but not sufficiently flexible for the CliBuilder. The "Java Way" is for a version of something, in this case Groovy 1.8.6 to retain its original dependency, in this case Commons CLI 1.2.x, rather than have the dependencies altered without a new release – most people get their dependencies from JCenter or Maven Central via Gradle or Maven. Apache Groovy 1.x series is no longer maintained. All effort is now on the Apache Groovy 2.4.x and 2.5-SNAPSHOT versions. If Debian is to remove Commons CLI 1.2 then I suggest removing the groovy package since the groovy2 package is in place already, and is the right version for Debian to go with. Unless I am missing something. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part