You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by EP...@upstate.com on 2002/12/16 17:38:48 UTC

DateUtils Planning, WAS: [lang] Has anyone thought about a TimeUt ils package?

I think that the Ant committers will not want to rely on yet another commons
package until it has shown that it will be supported and maintained.  Having
said that, I don't think it is horrible to have this code duplicated.
Eventually, as the code matures, and other elements are added, then when it
has "proved" itself, then I'm sure they want to rely on it.  However, I
don't think that we should worry too much about duplicating the code for
now, and just move ahead with copying the code, and getting the build in
shape.  What I mean by integrated is making sure that:
1) Docs are written
2) Testcases are complete
3) JavaDocs etc are done.

I don't know what the process for adding this to the official commons-lang,
I guess once the code has matured and proven it self, then it will be added
as well?

Eric Pugh

-----Original Message-----
From: Sean Schofield [mailto:news@schof.com]
Sent: Monday, December 16, 2002 11:33 AM
To: Jakarta Commons Developers List
Subject: Re: [lang] Has anyone thought about a TimeUtils package?


>
>
>That sounds like a plan.  I checked with one of the committers for Ant, and
>it seems like we can just copy the DateUtils class and cite it.  
>
So its ok to "rip" the code but I wonder if they are cool with 
eventually moving it to commons so it is only maintained in one spot.  I 
think that should be the ultimate goal since it does not make sense to 
maintain duplicate code (b/c a good portion of this new DateUtils in 
commons lang will be identical as we have said.)

>The
>DateUtils is what I am using as well.  Would this new code go into it's own
>sandbox, or be part of the lang project?  
>
>  
>
I think the first thing to do would be to add DateUtils (I noticed they 
already call it DateUtils which matches what I felt we should call it) 
from Ant and add it to the existing sandbox for lang (under 
jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang.)  We 
change the package name and add the cite saying this was originally 
taken from the jakarta-ant project.  Also we do the same for their test 
cases (moving them to 
jakarta-commons-sandbox/lang/src/test/org/apache/commons/lang.)  

>I would say, start small, and make sure that as each piece of code is
added,
>
Agreed.  Lets just start with moving it first as mentioned above.  Also 
I was thinking about starting another email thread with a more specific 
subject (or should we just continue with this one?)

>we get it well integrated before getting the next batch.
>
What did you mean by this?  Integrated with what?  Do you mean the 
official commons-lang?

- sean

>  
>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

Re: DateUtils Planning, WAS: [lang] Has anyone thought about a TimeUt ils package?

Posted by Henri Yandell <ba...@generationjava.com>.

On Mon, 16 Dec 2002 EPugh@upstate.com wrote:

> I think that the Ant committers will not want to rely on yet another commons
> package until it has shown that it will be supported and maintained.  Having
> said that, I don't think it is horrible to have this code duplicated.

Assuming it's in Lang, then this shouldn't be a big worry. The approach
has generally been to let other projects wake up to the fact that we've
replicated/copied methods from their hidden away private utils.

> Eventually, as the code matures, and other elements are added, then when it
> has "proved" itself, then I'm sure they want to rely on it.  However, I
> don't think that we should worry too much about duplicating the code for
> now, and just move ahead with copying the code, and getting the build in
> shape.  What I mean by integrated is making sure that:
> 1) Docs are written
> 2) Testcases are complete
> 3) JavaDocs etc are done.

Yep. Add: 4) Arguments are finished.

>
> I don't know what the process for adding this to the official commons-lang,
> I guess once the code has matured and proven it self, then it will be added
> as well?

We can go ahead in the commons-lang main tree I think. CalendarUtils is in
the sandbox and I would assume you would be merging that in too. There's
not a release of Lang planned anytime soon and releases can always ignore
new code.

Hen


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>