Re: [ALL] Is that 1 or l or I ?

2012-03-14 Thread Adrian Crum
Personally, I despise single character parameters/variable names. Seriously, is it that much work to type a few extra characters and make the name meaningful? -Adrian On 3/14/2012 1:33 PM, sebb wrote: I noticed that some of the CSV methods uses int l (ell). This is unfortunately very similar

Re: [ALL] Is that 1 or l or I ?

2012-03-14 Thread Adrian Crum
Except in nested loops: Which integer is being incremented, the inner loop or outer loop? If the outer loop used outer instead of i, and the inner loop used inner instead of j, then the loop being incremented is obvious. Idioms make sense as long as they're *your* idioms. To others it's

Re: Git support?

2012-05-19 Thread Adrian Crum
+1 on trying it out on a single component. -Adrian On 5/19/2012 9:08 AM, Luc Maisonobe wrote: Le 16/05/2012 15:41, Jochen Wiedmann a écrit : Well, with our multitude of projects, it might make sense to ask for one or two of them being migrated, so that we gather the experience. (I've got none

Re: svn commit: r1348334 - in /commons/proper/proxy/branches/version-2.0-work/stub/src/main/java/org/apache/commons/proxy2/stub: AnnotationFactory.java StubConfigurer.java

2012-06-09 Thread Adrian Crum
Actually, that cast should not be necessary. Try return AnnotationFactory.AnnotationgetStubType(); -Adrian On 6/9/2012 12:05 PM, sebb wrote: On 9 June 2012 08:54,mben...@apache.org wrote: Author: mbenson Date: Sat Jun 9 07:54:02 2012 New Revision: 1348334 URL:

Re: [collections] Cleanup of trunk

2012-06-24 Thread Adrian Crum
On 6/24/2012 12:25 PM, sebb wrote: On 24 June 2012 10:28, Thomas Neidhart thomas.neidh...@gmail.com wrote: Hi, I recently started to work more on collections and cleaning up the trunk to make it a candidate for a release and would like to ask a few questions: - there is still lots of

Re: [ALL] Commons JMS Project

2012-07-10 Thread Adrian Crum
I would like to be involved with this once it has found a home. -Adrian On 7/9/2012 9:12 PM, Scott England-Sullivan wrote: Hello, I have developed a new component for the Apache Camel project written using pure Java JMS APIs (the current component is a Spring JMS wrapper). There have been

Re: [all] Is this disguised fishing?

2012-07-12 Thread Adrian Crum
I haven't received that specific email, but I always reply back that any discussions about Apache projects should be kept on the mailing lists. -Adrian On 7/12/2012 1:48 PM, Sébastien Brisard wrote: Dear all, please find below a message I've received. It was sent to my apache address, which I

Re: [BeanUtils2] WeakHashMap is not a cache (?)

2012-08-13 Thread Adrian Crum
Apache OFBiz has a soft reference cache implementation. -Adrian On 8/13/2012 1:07 PM, Simone Tripodi wrote: guten morgen Bene, I have not a strong opinion about it, I am convinced anyway that the original BU authors (BU2 at the beginning was a tentative to refurbish BU) adopted the

Re: [BeanUtils2] WeakHashMap is not a cache (?)

2012-08-13 Thread Adrian Crum
/simonetripodi http://www.99soft.org/ On Mon, Aug 13, 2012 at 3:19 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: Apache OFBiz has a soft reference cache implementation. -Adrian On 8/13/2012 1:07 PM, Simone Tripodi wrote: guten morgen Bene, I have not a strong opinion about it, I am

Re: [CSV] Finishing v1.0

2013-03-20 Thread Adrian Crum
Adrian Crum adrian.c...@sandglass-software.com I would be interested in helping too. -Adrian On 3/19/2013 12:53 PM, Gary Gregory wrote: I am interested in seeing it through a 1.0. Let's make sure we like the API... Gary On Tue, Mar 19, 2013 at 8:39 AM, Benedikt Ritter brit...@apache.org wrote

Re: [CSV] Finishing v1.0

2013-03-20 Thread Adrian Crum
/20 Adrian Crum adrian.c...@sandglass-software.com There is a part of the API that I don't like - the CSVStrategy class is mutable. I can't imagine a file's strategy changing mid-file, so from my perspective the class should be immutable. Plus, the previous version used a builder pattern that I

Re: [CSV] Finishing v1.0

2013-03-20 Thread Adrian Crum
Okay, that looks better. -Adrian On 3/20/2013 8:52 AM, Benedikt Ritter wrote: That build is dated 30-Jul-2007. Please have a look at trunk in SVN ;-) Benedikt 2013/3/20 Adrian Crum adrian.c...@sandglass-software.com I grabbed the latest build: http://people.apache.org/** builds/commons

Re: [CSV] Finishing v1.0

2013-03-21 Thread Adrian Crum
The CSV site is very confusing: 1. The nightly build is not current. 2. The JavaDoc (latest) link points to an API that does not match the latest API. -Adrian On 3/20/2013 8:59 AM, Adrian Crum wrote: Okay, that looks better. -Adrian On 3/20/2013 8:52 AM, Benedikt Ritter wrote: That build

Re: [CSV] Finishing v1.0

2013-03-21 Thread Adrian Crum
] -Adrian On 3/21/2013 9:38 AM, Adrian Crum wrote: The CSV site is very confusing: 1. The nightly build is not current. 2. The JavaDoc (latest) link points to an API that does not match the latest API. -Adrian On 3/20/2013 8:59 AM, Adrian Crum wrote: Okay, that looks better

Re: [CSV] Problems building the page Was: [CSV] Finishing v1.0

2013-03-21 Thread Adrian Crum
...@apache.org wrote: 2013/3/21 Adrian Crum adrian.c...@sandglass-software.com Running mvn site generates an error: [ERROR] BUILD ERROR [INFO] --**--** [INFO] Error during page generation Embedded error: Error rendering Maven report

Re: [CSV] Problems building the page Was: [CSV] Finishing v1.0

2013-03-21 Thread Adrian Crum
lol - NOW you ask me. I think it was 2.2. -Adrian On 3/21/2013 4:12 PM, Gary Gregory wrote: What version did you use before? Gary On Thu, Mar 21, 2013 at 11:35 AM, Adrian Crum adrian.c...@sandglass-software.com wrote: I upgraded to Maven 3.0.5 and the problem was solved. Thanks! -Adrian

Re: [CSV] Extract interfaces?

2013-03-24 Thread Adrian Crum
On 3/23/2013 12:59 PM, Thomas Neidhart wrote: On 03/23/2013 12:41 PM, Benedikt Ritter wrote: Hi, while looking through the code, I was asking myself why we expose implementation classes. Wouldn't it be better to extract interfaces from CSVParser, CSVPrinter and CSVRecord? At least for the

Re: svn commit: r1461134 - in /commons/proper/csv/trunk/src: main/java/org/apache/commons/csv/ test/java/org/apache/commons/csv/

2013-03-26 Thread Adrian Crum
I like the idea of improving the JavaDoc. The DEFAULT field was very intuitive. -Adrian On 3/26/2013 2:14 PM, Gary Gregory wrote: On Tue, Mar 26, 2013 at 10:06 AM, Emmanuel Bourg ebo...@apache.org wrote: Le 26/03/2013 14:58, ggreg...@apache.org a écrit : -public static final CSVFormat

Re: [ALL] Cobertura and Parent POM

2013-04-04 Thread Adrian Crum
Thank you for working on this. The original proposal was to replace Cobertura with something else. I asked that the sub projects have an option to use whatever reporting tool they want. So, it would be fine if some other reporting tool was the default as long as sub projects can use something

Re: [CSV] Should the Builder API be optional?

2013-04-09 Thread Adrian Crum
True. Users are free to create their own facade to make object construction easier. -Adrian On 4/9/2013 6:22 AM, Gary Gregory wrote: WRT org.apache.commons.csv.CSVFormat.CSVFormat(char, Character, Quote, Character, Character, boolean, boolean, String, String, String[]) There does not seem to

Re: svn commit: r1477592 - in /commons/proper/codec/trunk/src: changes/changes.xml main/java/org/apache/commons/codec/language/Metaphone.java

2013-04-30 Thread Adrian Crum
On 4/30/2013 1:32 PM, ggreg...@apache.org wrote: Author: ggregory Date: Tue Apr 30 12:32:24 2013 New Revision: 1477592 URL: http://svn.apache.org/r1477592 Log: [CODEC-170] Link broken in Metaphone Javadoc. Modified: commons/proper/codec/trunk/src/changes/changes.xml

Re: [CSV] change line number from 0-based to 1-based

2013-05-07 Thread Adrian Crum
Maybe the method could be named better, something like ExtendedBufferedReader.getCurrentLineNumber() - which would be different than total lines processed. -Adrian On 5/7/2013 11:05 AM, sebb wrote: I've been looking at it further and there is an issue with 1-based counting. The line number

Re: [CSV] change line number from 0-based to 1-based

2013-05-07 Thread Adrian Crum
is processed, reached end of record. Current line number = 3, lines processed = 2, records processed = 1. -Adrian On 5/7/2013 12:08 PM, sebb wrote: On 7 May 2013 11:36, Adrian Crum adrian.c...@sandglass-software.com wrote: Maybe the method could be named better, something like

Re: [CHAIN] Why does ConextMap extend ConcurrentHashMap instead of delegating to a Map?

2013-06-24 Thread Adrian Crum
I have always preferred the has-a approach over the is-a approach. It makes things easier to refactor down the road. -Adrian On 6/24/2013 7:30 PM, Benedikt Ritter wrote: Hi, I just wonder why ContextMap inherits from ConcurrentHashMap. This seems like an unnecessary restriction. The context

Re: [csv] accessing primitives and other record values

2013-08-03 Thread Adrian Crum
Have you considered recommending Commons Convert? I agree that Java data type conversion is outside the scope of CSV. -Adrian On 8/3/2013 8:36 AM, Gary Gregory wrote: Hi All: I recently added these CSVRecord APIs: getBoolean(String), getInt(String), getLong(String), getBigInteger(String).

Re: [csv] accessing primitives and other record values

2013-08-03 Thread Adrian Crum
Inline... On 8/3/2013 9:05 AM, Gary Gregory wrote: On Sat, Aug 3, 2013 at 11:50 AM, Adrian Crum adrian.c...@sandglass-software.com wrote: Have you considered recommending Commons Convert? No: it is unreleased. Are you willing to help polish it to 1.0? Aside from a pending bug fix

Re: [csv] accessing primitives and other record values

2013-08-03 Thread Adrian Crum
/2013 9:18 AM, Paul Benedict wrote: Adrian, the conversions would be configurable. At least that's how I envisioned it using existing BeanUtils functionality. Gary has a request our to me to demo that. On Aug 3, 2013 11:10 AM, Adrian Crum adrian.c...@sandglass-software.com wrote: Inline... On 8/3

Re: [csv] accessing primitives and other record values

2013-08-03 Thread Adrian Crum
On Sat, Aug 3, 2013 at 11:25 AM, Adrian Crum adrian.c...@sandglass-software.com wrote: Actually, I picture it like this: Commons CSV does not contain any conversions, and data type conversions are left to the application developer. We can recommend Commons Convert. The applications developer

Re: [csv] accessing primitives and other record values

2013-08-03 Thread Adrian Crum
On 8/3/2013 9:49 AM, Gary Gregory wrote: On Sat, Aug 3, 2013 at 12:10 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: Inline... On 8/3/2013 9:05 AM, Gary Gregory wrote: On Sat, Aug 3, 2013 at 11:50 AM, Adrian Crum adrian.crum@sandglass-**software.com adrian.c...@sandglass

Re: [csv] accessing primitives and other record values

2013-08-03 Thread Adrian Crum
I am working on getting the bug fixes committed today. I will also include some more JavaDocs - hopefully that will help. If anyone wants to improve things further, they are welcome to do so. -Adrian On 8/3/2013 9:17 AM, James Carman wrote: On Sat, Aug 3, 2013 at 12:05 PM, Gary Gregory

Re: [csv] accessing primitives and other record values

2013-08-04 Thread Adrian Crum
:55 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: On 8/3/2013 9:49 AM, Gary Gregory wrote: On Sat, Aug 3, 2013 at 12:10 PM, Adrian Crum adrian.crum@sandglass-**software.com adrian.c...@sandglass-software.com wrote: Inline... On 8/3/2013 9:05 AM, Gary Gregory wrote: On Sat

Re: [convert] String to Boolean converter

2013-08-05 Thread Adrian Crum
Yes, that would be a good change. The general goal of String conversions was to mimic the type's toString() and valueOf() methods, but there are some exceptions that are left over from OFBiz. I tried to remove the OFBiz-specific code when I ported the code to Commons, but I can see I missed a

[CONVERT] Toward Release 1.0

2013-08-12 Thread Adrian Crum
In revision 1513175 I updated the code with the latest bug fixes. I can't deploy the site changes because the maven site:deploy target is broken - most likely due to recent changes to the deployment scripts. It worked fine the last time I used it. So, I need help from a maven guru to get it

Re: svn commit: r1513173 - /commons/sandbox/convert/trunk/build.xml

2013-08-12 Thread Adrian Crum
The Convert devs use Ant. We are not accustomed to using Maven. -Adrian On 8/12/2013 11:34 AM, sebb wrote: On 12 August 2013 18:45, Benedikt Ritter brit...@apache.org wrote: 2013/8/12 adri...@apache.org Author: adrianc Date: Mon Aug 12 15:47:17 2013 New Revision: 1513173 URL:

Re: [CONVERT] Toward Release 1.0

2013-08-12 Thread Adrian Crum
/12/2013 10:43 AM, Benedikt Ritter wrote: Hey, site publication has changed. Use the steps described on the website: http://commons.apache.org/site-publish.html Benedikt 2013/8/12 Adrian Crum adrian.c...@sandglass-software.com In revision 1513175 I updated the code with the latest bug fixes. I

Re: [spam] Re: [CONVERT] Toward Release 1.0

2013-08-12 Thread Adrian Crum
I had to commit it manually. -Adrian On 8/12/2013 1:01 PM, Matt Benson wrote: Your account is likely locked out now. I just reset mine from a mvn site:stage build I did earlier today. ;) Matt On Mon, Aug 12, 2013 at 2:51 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: Thanks

Re: [convert] Automatic conversion based on proxies

2013-08-14 Thread Adrian Crum
I don't think CSV needs anything special to accommodate type conversion. The pattern I tried to introduce in the Commons Convert Getting Started section is one that works in any part of an application where conversion might be needed. So, instead of hard-coding conversions, the developer

Re: [CSV] Prohibit creation of more than one iterator over a CSVParser?

2013-08-14 Thread Adrian Crum
The Iterator should contain a Parser, but not the other way around. -Adrian On 8/14/2013 11:22 AM, Benedikt Ritter wrote: Thanks for the input. Now is the time to talk about this kind of stuff. I understand Matt's proposal and it should be relatively easy to implement. However I see Paul's

Re: [ognl] SVN $ID and @author

2011-10-15 Thread Adrian Crum
On 10/15/2011 1:37 PM, sebb wrote: On 15 October 2011 13:16, Emmanuel Bourgebo...@apache.org wrote: -0 on the @author tag since I'm not involved in OGNL. I find it a bit rude to remove the signature from someone else work. But feel free to remove your own name. Indeed, one should ideally get

Re: [SANDBOX][CONVERTER] who's taking care?

2011-10-25 Thread Adrian Crum
I am taking care of it, but it hasn't been updated in awhile because all of the recent Maven work broke the build/deploy process. -Adrian On 10/25/2011 5:33 PM, Simone Tripodi wrote: Hi all guys, I need something similar to Converter and of course I don't want to reinvent the wheel - I have

Re: [SANDBOX][CONVERTER] who's taking care?

2011-10-26 Thread Adrian Crum
://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Tue, Oct 25, 2011 at 7:17 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: I am taking care of it, but it hasn't been updated in awhile because all

Re: [SANDBOX][CONVERTER] who's taking care?

2011-10-26 Thread Adrian Crum
On 10/26/2011 10:36 PM, Matt Benson wrote: On Wed, Oct 26, 2011 at 3:42 PM, Simone Tripodi simonetrip...@apache.org wrote: Hi Adrian! nice to see you involved here! So, I took few time to reorganize my ideas and I would like to discuss with you how to make a new [convert] component,. For

[SANDBOX] Problem with mvn deploy

2011-10-26 Thread Adrian Crum
When I try to deploy the Commons Sandbox Convert project, I get the following error: [INFO] [deploy:deploy {execution: default-deploy}] [INFO] Retrieving previous build number from apache.snapshots.https [INFO] repository metadata for: 'snapshot org.apache.commons:commons-convert:1.0

Re: [SANDBOX] Problem with mvn deploy

2011-10-27 Thread Adrian Crum
[1] http://wiki.apache.org/commons/UsingNexus http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Thu, Oct 27, 2011 at 5:33 AM, Adrian Crum adrian.c...@sandglass-software.com wrote: When I try to deploy

Re: [SANDBOX] Problem with mvn deploy

2011-10-27 Thread Adrian Crum
/ On Thu, Oct 27, 2011 at 12:28 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: Thanks Simone! I created the settings.xml file and security-settings.xml file in my .m2 folder as described on the websites, but I still get the same error. Are there any configuration xml file examples somewhere

Re: [SANDBOX] Problem with mvn deploy

2011-10-27 Thread Adrian Crum
://twitter.com/simonetripodi http://www.99soft.org/ On Thu, Oct 27, 2011 at 12:49 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: Thanks Simone! I tried the encryption again - same error. -Adrian On 10/27/2011 11:36 AM, Simone Tripodi wrote: Hi Adrian! for what I can see looks like you maybe

Re: [SANDBOX] Problem with mvn deploy

2011-10-27 Thread Adrian Crum
/simonetripodi http://www.99soft.org/ On Thu, Oct 27, 2011 at 1:00 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: That solved the problem - thanks! -Adrian On 10/27/2011 11:54 AM, Simone Tripodi wrote: ouch, that's such a shame ;( poor-man question: did you add the servers

Re: [SANDBOX] Problem with mvn deploy

2011-10-27 Thread Adrian Crum
/ On Thu, Oct 27, 2011 at 1:08 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: One last question: I ran mvn site and mvn deploy - will those commands update the website? -Adrian On 10/27/2011 12:05 PM, Simone Tripodi wrote: Cool, nice to hear that!!! All the best, Simo http

Re: [SANDBOX] Problem with mvn deploy

2011-10-27 Thread Adrian Crum
Well... since the site is generated automatically, I have no idea how to change the logo. -Adrian On 10/27/2011 5:46 PM, Gary Gregory wrote: Almost: the logo needs a TM. ;) Gary On Oct 27, 2011, at 12:31, Adrian Crum adrian.c...@sandglass-software.com wrote: The Commons Convert website

Re: [SANDBOX] Problem with mvn deploy

2011-10-27 Thread Adrian Crum
-white.xcf you can modify the .xcf with TheGimp and regenerate the png HTH!!! Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Thu, Oct 27, 2011 at 8:00 PM, Adrian Crum adrian.c...@sandglass

Re: [convert] API Discussion...

2011-11-04 Thread Adrian Crum
The source and target classes are used by the Converter.canConvert method. The Converter.canConvert method is used by the Converter factory to find the correct converter. The reason parameterized types are not used in this scenario is so you can create converters that handle entire class

Re: [convert] API Discussion...

2011-11-04 Thread Adrian Crum
It's a lot more dynamic than that. The factory is smart - it creates and registers converters on-the-fly as it is used. -Adrian On 11/4/2011 11:17 AM, James Carman wrote: I would think that the source and target would be a part of the registration process and not a member of each individual

Re: [convert] API Discussion...

2011-11-04 Thread Adrian Crum
From my perspective, it would be preferable to keep the community involved in the design decisions. -Adrian On 11/4/2011 11:15 AM, James Carman wrote: I don't have to submit a patch. I am a commons committer On Nov 4, 2011 5:55 AM, Adrian Crumadrian.c...@sandglass-software.com wrote: The

Re: [convert] API Discussion...

2011-11-04 Thread Adrian Crum
Not so that someone else can commit them, so that others can review them and comment on them. -Adrian On 11/4/2011 11:25 AM, James Carman wrote: If need be, I would just create a branch for my work. It would be silly for me to submit patches so that someone else would commit them On Nov 4,

Re: [convert] API Discussion...

2011-11-04 Thread Adrian Crum
Agreed. Please don't mis-interpret my replies - I'm not trying to own the sandbox, I just want everyone to have a chance to play in it. The recent interest in Convert is great - I hope its popularity and usefulness grows. I'm truly looking forward to more people getting involved. The current

Re: [csv] Java 5?

2011-11-10 Thread Adrian Crum
On 11/10/2011 12:19 PM, James Carman wrote: On Thu, Nov 10, 2011 at 4:11 AM, Emmanuel Bourgebo...@apache.org wrote: Do you have another name in mind? Not really. We could derive Doofus from Delimited-File Streams. :) Or Delfis -Adrian

Re: [csv] API design

2011-11-29 Thread Adrian Crum
On 11/29/2011 2:26 PM, Emmanuel Bourg wrote: Le 29/11/2011 14:43, Matt Benson a écrit : Well, assuming header-free CSV output you could do any odd thing like: foo;bar;(2);element1;element2; giving an open-ended format. Not saying such would be the greatest idea, but could be usable under

Re: [JEXL] Jexl 2.1?

2011-12-02 Thread Adrian Crum
Some of the release requirements are specific to Commons, not the ASF in general. -Adrian On 12/2/2011 4:34 PM, Christian Grobmeier wrote: On Fri, Dec 2, 2011 at 5:14 PM, henribhen...@apache.org wrote: Of course I am frustrated; I'm old enough to know it will pass... More importantly, I

Re: [lang] - Request to add a wrapper class for StringBuilder to handle the adding of suffixes and prefixes in output strings in certain cases.

2011-12-15 Thread Adrian Crum
It seems to me it would be simpler to implement a String format extension for specifying collections (%l): “Please specify the following: %l%n“, [Name, Cell, Email Address] -Adrian On 12/15/2011 11:25 AM, James Carman wrote: At first glance, I don't know how general this is. It seems very

Re: [Commons Wiki] Update of BuildSystems by ChristianGrobmeier

2012-01-08 Thread Adrian Crum
Commons Convert isn't on the Sandbox list. It supports Ant and Maven 2. -Adrian On 1/8/2012 2:57 PM, Ralph Goers wrote: This page is seriously out of date. I took a look at several components that have Yes on Maven 1 and none of them have a project.xml so wouldn't be able to build with Maven

Re: [functor] CharacterRange, FloatRange, DoubleRange and open/closed intervals

2012-01-24 Thread Adrian Crum
On 1/24/2012 6:58 PM, Matt Benson wrote: IMO the difference between [lang]'s and [functor]'s range concepts is that those in [lang] are intended to be able to say whether a given value is in the Range, but, with the exception of CharRange (this class is not even public), they make no provision

Re: [functor] CharacterRange, FloatRange, DoubleRange and open/closed intervals

2012-01-24 Thread Adrian Crum
On 1/24/2012 8:15 PM, Matt Benson wrote: Thanks for your interest, Adrian! Comments inline: On Tue, Jan 24, 2012 at 1:58 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: On 1/24/2012 6:58 PM, Matt Benson wrote: IMO the difference between [lang]'s and [functor]'s range concepts

Re: [functor] CharacterRange, FloatRange, DoubleRange and open/closed intervals

2012-01-24 Thread Adrian Crum
: Thanks for your interest, Adrian! Comments inline: On Tue, Jan 24, 2012 at 1:58 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: On 1/24/2012 6:58 PM, Matt Benson wrote: IMO the difference between [lang]'s and [functor]'s range concepts is that those in [lang

Re: [lang] What about Duration class? (org.apache.commons.lang.time)

2012-01-26 Thread Adrian Crum
On 1/26/2012 6:59 AM, Henri Yandell wrote: On Wed, Jan 25, 2012 at 2:14 PM, Christian Grobmeier grobme...@gmail.com wrote: On Wed, Jan 25, 2012 at 9:17 PM, Benedikt Ritter b...@systemoutprintln.de wrote: But i found only discussions about durationjoda-time dated 2004.

Re: Conversion utility class

2012-02-04 Thread Adrian Crum
Have you seen Commons Convert? http://commons.apache.org/sandbox/convert/ -Adrian On 2/4/2012 5:38 AM, ma...@nimp.co.uk wrote: Hello, I am developing a utility class and would like to contribute it to an Apache project. I am writing to know if Apache commons is the right project, which sub

Re: Conversion utility class

2012-02-05 Thread Adrian Crum
or eclipse can... Sebastien Original Message: - From: Adrian Crum adrian.c...@sandglass-software.com Date: Sat, 04 Feb 2012 16:53:25 + To: dev@commons.apache.org Subject: Re: Conversion utility class Have you seen Commons Convert? http://commons.apache.org/sandbox/convert

Re: About collections and generics

2010-12-29 Thread Adrian Crum
The project was written for a JRE earlier than 1.5. Change your Eclipse project settings to use a compiler prior to 1.5. -Adrian On 12/29/2010 12:18 PM, Michael Giannakopoulos wrote: Hello to all of you guys, I would like to ask a trivial for most of you question... As i see the source code

Re: About collections and generics

2010-12-29 Thread Adrian Crum
That is correct. Some of the commons libraries have existed for a long time, and they are written to work with older JRE versions for backward compatibility. Newer releases are written for newer JREs. -Adrian --- On Wed, 12/29/10, Michael Giannakopoulos miccagi...@gmail.com wrote: Hello

Re: [pool] help needed for pool2.0 - proposal for a release plan

2011-01-23 Thread Adrian Crum
Two books I found valuable for working on Java concurrency: 1. Java Concurrency In Practice, by Brian Goetz 2. Concurrent Programming In Java, by Doug Lea -Adrian On 1/23/2011 11:02 AM, Simone Tripodi wrote: Hi Phil!!! don't worry, no apologizes are needed, that's open source and we all

Re: [csv] Proposal to remove setter methods from CSVStrategy

2011-01-29 Thread Adrian Crum
From my perspective, if DEFAULT_STRATEGY, EXCEL_STRATEGY, or TDF_STRATEGY are mutable, then copies of them should be returned in a factory method. Ideally, a selector would be passed to a factory method: CSVStrategy strategy = CSVStrategy.getInstance(CSVStrategy.DEFAULT_STRATEGY); -Adrian

RE: [csv] Fixes for commons-csv

2011-02-01 Thread adrian . crum
Having a JDBC driver would make using CSV files a lot simpler. If the guts were pluggable, you could use the same driver for SDF files, Excel files, Open Doc data, etc. -Adrian Quoting Gary Gregory ggreg...@seagullsoftware.com: Hi All, I've just come across the need to do CSV work but

Re: [Math - 403] Never propagate a NullPointerException resulting from bad usage of the API

2011-03-02 Thread Adrian Crum
I agree with this view. It would help the developer who uses CM if the library told him/her what they did wrong (argument 'foo' cannot be null) instead of a simple exception thrown message (NullPointerException thrown at line nnn of class Xyz). -Adrian On 3/2/2011 3:37 AM, Gilles Sadowski

Re: [lang3] Pair

2011-03-04 Thread Adrian Crum
+1 on the Association interface. The Tuple interface looks like a Collection, even more so when it expands to more than two elements. -Adrian On 3/4/2011 11:24 AM, Gary Gregory wrote: Can we talk about the class name and use cases? For me a pair evokes similarity: a pair of shoes, a pair

Re: [lang] Why is a Range not a Pair?

2011-03-17 Thread Adrian Crum
A range could also be viewed as an interval - in which case lowerBound and upperBound would make more sense. I imagine it depends on your perspective, or your interpretation of what a range is. -Adrian On 3/17/2011 9:03 AM, Gary Gregory wrote: Why is a Range not a Pair? Because... is it

Re: [ALL] consistent website page titles

2011-03-27 Thread Adrian Crum
The last time I tried to deploy Sandbox Convert, nothing happened. I think the recent Maven changes may have affected something. I would be happy to update the site otherwise. -Adrian On 3/27/2011 6:33 AM, sebb wrote: Our website page titles are currently rather inconsistent: For example,

Re: [ALL] @authors tags

2011-04-05 Thread Adrian Crum
On 4/4/2011 2:22 PM, Phil Steitz wrote: On 4/4/11 2:18 PM, Torsten Curdt wrote: I thought we had settled on '@author Apache Software Foundation', Did we? TBH I find that pretty pointless and nothing more than noise. I'd be in favor of removing them all together. I agree with Torsten. I got

Re: [ALL] @authors tags

2011-04-05 Thread Adrian Crum
The author information in the pom file is also redundant - it already exists in greater detail in the commit logs. -Adrian On 4/5/2011 5:31 AM, Simone Tripodi wrote: authors/contributors are enlisted on the pom in thedevelopers/ and contributors/ section

Re: [ALL] @authors tags

2011-04-05 Thread Adrian Crum
AM, Jochen Wiedmann wrote: On Tue, Apr 5, 2011 at 5:35 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: The author information in the pom file is also redundant - it already exists in greater detail in the commit logs. 1.) Authors aren't necessarily committers. That's what

Re: [Lang] Pair toString

2011-04-11 Thread Adrian Crum
Why not make your custom Pair class a delegator? -Adrian On 4/11/2011 7:00 AM, Gary Gregory wrote: Hi All: I added a test to verify the default Pair toString behavior. For me to replace our custom Pair class at work, I need to customize the to String behavior. Subclassing ImmutablePair and

Re: [Lang] Pair toString

2011-04-11 Thread Adrian Crum
Delegating is trivial in Eclipse - it will write the code for you. As for delegating versus rolling your own - delegating leverages the code maturity and unit tests of the delegate. -Adrian On 4/11/2011 9:16 AM, Gary Gregory wrote: On Mon, Apr 11, 2011 at 10:12 AM, Matt

Re: [Lang] Pair toString

2011-04-11 Thread Adrian Crum
the is a pattern - that's why I suggested delegation. -Adrian On 4/11/2011 9:30 AM, Gary Gregory wrote: On Mon, Apr 11, 2011 at 12:19 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: Delegating is trivial in Eclipse - it will write the code for you. As for delegating versus rolling your

Re: svn commit: r1094224 - in /commons/proper/compress/trunk/src: changes/changes.xml main/java/org/apache/commons/compress/archivers/zip/ZipFile.java

2011-04-17 Thread Adrian Crum
A suggestion: if the library has logging capability, then log a warning saying that the archive was closed in the finalize method. That will serve as a clue to the library user that they forgot to close the archive. -Adrian On 4/17/2011 9:28 PM, bode...@apache.org wrote: Author: bodewig

Re: [pool] replacing numeric/byte constants with Java5 enums

2011-04-25 Thread Adrian Crum
It would be interesting to see how an int wrapper would perform on Android. -Adrian On 4/25/2011 2:21 PM, Stephen Williams wrote: Note that, as of Android 2.2's Dalvik at least, that Java5 enums are much much slower than using constants. For anything that gets used frequently, and that might

Re: [lang] NullArgumentException usage

2011-07-07 Thread Adrian Crum
I use an Assert class (similar to commons Validate): Assert.notNull(argName, arg); http://ci.apache.org/projects/ofbiz/site/javadocs/org/ofbiz/base/util/Assert.html The difference is it throws IllegalArgumentException. -Adrian On 7/7/2011 5:56 PM, Gary Gregory wrote: Hi All: I do like

Introduction

2010-03-04 Thread Adrian Crum
Hello all. My name is Adrian Crum and I am a PMC member of the Apache Open For Business project (OFBiz). Apache OFBiz is an ERP application, and it contains some technologies that would be suitable for spinning off into stand-alone libraries. One of those technologies is a Java object type

Re: Introduction

2010-03-04 Thread Adrian Crum
I suspect you would meet little resistence since the policy here is failry liberal with respect to giving ASF committers access to the commons sandbox. Ralph On Mar 4, 2010, at 3:10 PM, Adrian Crum wrote: Hello all. My name is Adrian Crum and I am a PMC member of the Apache Open

Re: Introduction

2010-03-04 Thread Adrian Crum
adrianc --- On Thu, 3/4/10, Mladen Turk mt...@apache.org wrote: From: Mladen Turk mt...@apache.org Subject: Re: Introduction To: Commons Developers List dev@commons.apache.org Date: Thursday, March 4, 2010, 9:26 PM On 03/05/2010 06:08 AM, Adrian Crum wrote: My login? To what? Repo? Jira

Re: Introduction

2010-03-04 Thread Adrian Crum
expected that others will have got involved by then. On the temporal expressions - basing it on Joda Time (if it's not) would be cool. We've not had much fun trying to write solid code on top of the standard Java date code :) Hen On Thu, Mar 4, 2010 at 9:30 PM, Adrian Crum adrian.c

[SANDBOX] Ready To Commit The New Convert Sub-Project

2010-03-07 Thread Adrian Crum
I'm ready to commit the new Convert sub-project to the sandbox. What should I call it? convert seems most logical, but that might cause confusion because the same thing exists in dormant. Someone suggested ofbiz-convert but I'd really like to make a clean break from OFBiz. Any ideas? Also,

Re: [SANDBOX] Ready To Commit The New Convert Sub-Project

2010-03-12 Thread Adrian Crum
Since there were no replies to this, I went ahead and created the sandbox/convert repository. I still need sandbox karma granted to doogie. -Adrian --- On Sun, 3/7/10, Adrian Crum adrian.c...@yahoo.com wrote: From: Adrian Crum adrian.c...@yahoo.com Subject: [SANDBOX] Ready To Commit The New

Re: [SANDBOX] Ready To Commit The New Convert Sub-Project

2010-03-12 Thread Adrian Crum
Crum wrote: Since there were no replies to this, I went ahead and created the sandbox/convert repository. I still need sandbox karma granted to doogie. Done. Sorry for the slow response. Phil -Adrian --- On Sun, 3/7/10, Adrian Crum adrian.c...@yahoo.com wrote: From: Adrian

RE: [SANDBOX] Ready To Commit The New Convert Sub-Project

2010-03-13 Thread Adrian Crum
www.seagullsoftware.com -Original Message- From: Niall Pemberton [mailto:niall.pember...@gmail.com] Sent: Saturday, March 13, 2010 06:02 To: Commons Developers List Subject: Re: [SANDBOX] Ready To Commit The New Convert Sub-Project On Fri, Mar 12, 2010 at 5:04 PM, Adrian Crum adrian.c

Re: [SANDBOX] Ready To Commit The New Convert Sub-Project

2010-03-13 Thread Adrian Crum
, 2010, 6:02 AM On Fri, Mar 12, 2010 at 5:04 PM, Adrian Crum adrian.c...@yahoo.com wrote: Since there were no replies to this, I went ahead and created the sandbox/convert repository. I deleted and re-added the converters, doing an svn copy from OFBiz - the history is important

Re: svn commit: r922640 - /commons/sandbox/convert/trunk/pom.xml

2010-03-13 Thread Adrian Crum
Thanks! I'm not familiar with Maven, so your help is greatly appreciated! -Adrian --- On Sat, 3/13/10, nia...@apache.org nia...@apache.org wrote: From: nia...@apache.org nia...@apache.org Subject: svn commit: r922640 - /commons/sandbox/convert/trunk/pom.xml To: comm...@commons.apache.org

Re: svn commit: r922687 - /commons/proper/commons-site/src/site/xdoc/new-sandbox-component.xml

2010-03-13 Thread Adrian Crum
That's a great idea! It will really help newcomers. -Adrian --- On Sat, 3/13/10, nia...@apache.org nia...@apache.org wrote: From: nia...@apache.org nia...@apache.org Subject: svn commit: r922687 - /commons/proper/commons-site/src/site/xdoc/new-sandbox-component.xml To:

Re: svn commit: r922773 - /commons/sandbox/convert/trunk/.classpath

2010-03-14 Thread Adrian Crum
I know you mentioned that previously. It would help me understand better if you could tell me what it is about the file that isn't portable. As far as I can tell, it only contains pointers to the two source paths and the JUnit library. It seems to me all Eclipse users would need at least that

Re: svn commit: r922773 - /commons/sandbox/convert/trunk/.classpath

2010-03-14 Thread Adrian Crum
, 8:33 AM On 14/03/2010, Adrian Crum adrian.c...@yahoo.com wrote: I know you mentioned that previously. It would help me understand better if you could tell me what it is about the file that isn't portable. As far as I can tell, it only contains pointers to the two source paths and the JUnit

[SANDBOX] Need Help Building A Sandbox Site

2010-03-27 Thread Adrian Crum
I noticed all of the sandbox sub-project links generate a 404 error. I tried to update the sandbox convert site by following the instructions here: http://commons.apache.org/building.html It appeared the mvn site command downloaded poms and jars from the entire Commons project, then ran a

Re: [SANDBOX] Need Help Building A Sandbox Site

2010-03-27 Thread Adrian Crum
--- On Sat, 3/27/10, Rahul Akolkar rahul.akol...@gmail.com wrote: Adrian Crum adrian.c...@yahoo.com wrote: I noticed all of the sandbox sub-project links generate a 404 error. I tried to update the sandbox convert site by following the instructions here: http://commons.apache.org

Re: [SANDBOX] Need Help Building A Sandbox Site

2010-03-27 Thread Adrian Crum
--- On Sat, 3/27/10, Phil Steitz phil.ste...@gmail.com wrote: Adrian Crum wrote: --- On Sat, 3/27/10, Rahul Akolkar rahul.akol...@gmail.com wrote: Adrian Crum adrian.c...@yahoo.com wrote: I noticed all of the sandbox sub-project links generate a 404 error. I tried to update

  1   2   >