[Biojava-l] Re: what is 1.4?

Thomas Down td2@sanger.ac.uk
Fri, 8 Mar 2002 15:21:09 +0000


On Fri, Mar 08, 2002 at 10:09:21AM -0500, Guoneng Zhong wrote:
> Hi Thomas,
> 
> I noticed that in the cvs tree I downloaded there are two src dirs; one 
> with a 1.4 attached to it.  What is that?  And which should I be working 
> on?  Is this 1.4 the jdk 1.4 or the next release of biojava?
> 
> I don't have jdk 1.4 (I use Mac OS X).


Hi...

I've sent this to the mailing list, in case anyone else
is wondering what's going on here.

The new src-1.4 directory was added for source files which
contain code which depends on new APIs in J2SE version 1.4.
When you type `ant' to build the project, the build script
checks to see if you're using JDK1.4 (well, actually it
checks to see if the interface java.nio.Buffer exists, but
that amounts to the same thing...).  If so, the contents of
src-1.4 are copies into the build directory, on top of any
code from the main src/ directory.

This allows anyone who's keen to write nice, optimized, I/O
stuff using the nio APIs to proceed with impunity.  Right now,
that just mean Matthew's SSAHAJ stuff, but there might be more
in the future.

All other code should stay in the main src/ tree.

     Thomas.