Re: [lang]

2018-01-11 Thread Matt Benson
On Jan 10, 2018 9:22 PM, "Gary Gregory" wrote: On Wed, Jan 10, 2018 at 5:44 PM, Matt Benson wrote: > As I'm sure you're aware, the planned obsolescence of this approach is its > obvious drawback (a similar drawback exists already in the JavaVersion >

Re: [lang]

2018-01-11 Thread Gilles
On Thu, 11 Jan 2018 07:49:40 -0600, Matt Benson wrote: On Jan 10, 2018 9:22 PM, "Gary Gregory" wrote: On Wed, Jan 10, 2018 at 5:44 PM, Matt Benson wrote: As I'm sure you're aware, the planned obsolescence of this approach is its obvious

Re: [lang]

2018-01-11 Thread Gilles
On Thu, 11 Jan 2018 08:16:01 -0600, Matt Benson wrote: On Jan 11, 2018 7:59 AM, "Gilles" wrote: On Thu, 11 Jan 2018 07:49:40 -0600, Matt Benson wrote: On Jan 10, 2018 9:22 PM, "Gary Gregory" wrote: On Wed, Jan 10, 2018 at 5:44 PM,

Re: [lang]

2018-01-11 Thread Matt Benson
On Jan 11, 2018 7:59 AM, "Gilles" wrote: On Thu, 11 Jan 2018 07:49:40 -0600, Matt Benson wrote: > On Jan 10, 2018 9:22 PM, "Gary Gregory" wrote: > > On Wed, Jan 10, 2018 at 5:44 PM, Matt Benson wrote: > > As I'm sure

Re: [VOTE] Release Commons Release Plugin 1.0 base on RC1

2018-01-11 Thread Bruno P. Kinoshita
[ X ] +1 Release it. I'm OK with the lazy vote from the other thread, or with this vote process. Both work fine for me. And fantastic work! Build from tag passing with `mvn clean test site` on: Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T20:58:13+13:00) Maven

Call for Presentations FOSS Backstage open

2018-01-11 Thread Isabel Drost-Fromm
Hi, As announced on Berlin Buzzwords we (that is Isabel Drost-Fromm, Stefan Rudnitzki as well as the eventing team over at newthinking communications GmbH) are working on a new conference in summer in Berlin. The name of this new conference will be "FOSS Backstage". Backstage comprises all things

Fwd: [jira] [Created] (COMDEV-248) add /dist/ health issues

2018-01-11 Thread Sergio Fernández
>From ComDev, just discovered checker.a.o, and got into the following report with problems: https://checker.apache.org/projs/commons.html What do we usually do with such problems on dormant components? -- Forwarded message -- From: Henk Penning (JIRA) Date:

Re: Fwd: [jira] [Created] (COMDEV-248) add /dist/ health issues

2018-01-11 Thread Gilles
On Thu, 11 Jan 2018 12:35:35 +0100, Sergio Fernández wrote: From ComDev, just discovered checker.a.o, and got into the following report with problems: https://checker.apache.org/projs/commons.html What do we usually do with such problems on dormant components? IIUC, this

Re: [VOTE] Release Commons Release Plugin 1.0 base on RC1

2018-01-11 Thread Rob Tompkins
If you want to really test it in dry run mode you could run “mvn clean install” on the src artifact and then configure it in a component and run a test release. It should work just the same as if it was coming out of maven central. -Rob > On Jan 11, 2018, at 3:58 AM, Jörg Schaible

Re: [VOTE] Release Commons Release Plugin 1.0 base on RC1

2018-01-11 Thread Sergio Fernández
What about casting this first release as 0.1? Then we solve the chicken & egg problem: we can verify it the actual components before releasing 1.0 (which semantically speaking has a strong meaning. On Jan 11, 2018 04:35, "Gary Gregory" wrote: I wonder if: - This should

Re: [lang]

2018-01-11 Thread Gilles
On Wed, 10 Jan 2018 20:23:04 -0700, Gary Gregory wrote: On Wed, Jan 10, 2018 at 5:47 PM, Gilles wrote: On Wed, 10 Jan 2018 17:34:55 -0700, Gary Gregory wrote: Hi All: I find myself writing a lot of this kind of code: if

Re: [lang]

2018-01-11 Thread Gilles
On Wed, 10 Jan 2018 20:21:53 -0700, Gary Gregory wrote: On Wed, Jan 10, 2018 at 5:44 PM, Matt Benson wrote: As I'm sure you're aware, the planned obsolescence of this approach is its obvious drawback (a similar drawback exists already in the JavaVersion parameter type).

Re: [collections] New iterator/iterable methods

2018-01-11 Thread sebb
Also, what is the use case for such methods? How many will there be - i.e. do you plan to add .last, .second, .random? I'm not keen on methods that save a few lines of code unless there's a common use case and the behaviour is obvious/unambiguous from the name. On 11 January 2018 at 07:45,

Re: [VOTE] Release Commons Release Plugin 1.0 base on RC1

2018-01-11 Thread Jörg Schaible
Am Wed, 10 Jan 2018 20:35:52 -0700 schrieb Gary Gregory: > I wonder if: > - This should be a LAZY VOTE since this is not an official component but > rather a tool +1 > - We should release it as 1.0 anyway (unless obvious bugs > are found) to avoid the chicken and egg problem: To really test

Re: [VOTE] Release Commons Release Plugin 1.0 base on RC1

2018-01-11 Thread Rob Tompkins
If you do try to run it locally make sure you add true To the configuration section of the plugin. > On Jan 11, 2018, at 3:58 AM, Jörg Schaible > wrote: > > Am Wed, 10 Jan 2018 20:35:52 -0700 schrieb Gary Gregory: > >> I wonder if: >> - This should be a LAZY

Re: [collections] New iterator/iterable methods

2018-01-11 Thread Gary Gregory
Hi, Some APIs, either due to age or design, deal out an Iterator and nothing else. And sometimes, all I care about (in tests, for example, or if the list is a set of aliases) is the first object. The method IteratorUtils.first(Iterator) is a shorthand for IteratorUtils.get(Iterator, 0). I do

Re: [collections] New iterator/iterable methods

2018-01-11 Thread Claude Warren
for test cases I tend to use iterator.next() to get the first item. It will fail spetacularly if the iterator has no next() and if it does you have first(). No need for extra functions. Claude On Thu, Jan 11, 2018 at 3:22 PM, Gary Gregory wrote: > Hi, > > Some APIs,

Re: [VOTE] Release Commons Release Plugin 1.0 base on RC1

2018-01-11 Thread sebb
On 11 January 2018 at 14:42, Rob Tompkins wrote: > If you do try to run it locally make sure you add > true It would be useful to be able to define this on the command-line. > To the configuration section of the plugin. > >> On Jan 11, 2018, at 3:58 AM, Jörg Schaible

Re: [VOTE] Release Commons Release Plugin 1.0 base on RC1

2018-01-11 Thread Gary Gregory
Tangent: It just occurred to me that this could have helped in the process of developing this plugin: https://github.com/ok2c/httpcomponents-release-tools/wiki Gary On Thu, Jan 11, 2018 at 6:54 PM, Rob Tompkins wrote: > I had that quickly set up by adding > > ${dryRun} > >

Re: [collections] New iterator/iterable methods

2018-01-11 Thread sebb
On 12 January 2018 at 00:51, Gary Gregory wrote: > On Thu, Jan 11, 2018 at 5:23 PM, sebb wrote: > >> On 11 January 2018 at 15:22, Gary Gregory wrote: >> > Hi, >> > >> > Some APIs, either due to age or design, deal out an Iterator

Re: [VOTE] Release Commons Release Plugin 1.0 base on RC1

2018-01-11 Thread Rob Tompkins
I had that quickly set up by adding ${dryRun} to the plugin configuration, but I admit that’s a bit of a hack. I was just trying to be speedy in the first version of the plugin for folks’ benefit. > On Jan 11, 2018, at 7:25 PM, sebb wrote: > >> On 11 January 2018 at

Re: [collections] New iterator/iterable methods

2018-01-11 Thread sebb
On 11 January 2018 at 15:22, Gary Gregory wrote: > Hi, > > Some APIs, either due to age or design, deal out an Iterator and nothing > else. And sometimes, all I care about (in tests, for example, or if the > list is a set of aliases) is the first object. > > The method

Re: [collections] New iterator/iterable methods

2018-01-11 Thread Gary Gregory
On Thu, Jan 11, 2018 at 5:23 PM, sebb wrote: > On 11 January 2018 at 15:22, Gary Gregory wrote: > > Hi, > > > > Some APIs, either due to age or design, deal out an Iterator and nothing > > else. And sometimes, all I care about (in tests, for example, or

Re: [collections] New iterator/iterable methods

2018-01-11 Thread Claude Warren
actually last() would probably be more useful. I still don't see the need for first() when next() will suffice, unless first() is changing the return value when there is no first(). As clarification what happens if I call: Iterator iterator = Arrays.asList( "a","b" ).iterator(); x =