[Biojava-l] ProcessTools news

Thomas Down thomas at derkholm.net
Sun Aug 17 15:38:10 EDT 2003


Once upon a time, Francois Pepin wrote:
> 
> I personally think that the class in a good shape now (I hope no one has
> started using the API that I just broke yet).

Yes, it's looking good.  I've been giving it a fairly heavy hammering
this weekend, and it's holding out okay.

I have just checked in a couple of minor-ish changes though.

   - The *long* versions of the exec methods (with timeouts)
     now have two extra parameters, which can be used to override
     the environment variables and working directory of the child
     process.  Both of these can be set to null if you don't
     need them.  But they're very handy for things like setting
     BLASTDBs or running ant/make/something else which cares
     about the directory you run it from.

   - I've added a minor fix to enforce the contract that if a
     process is killed by the timeout, the exec method will
     exit with a ProcessTimeoutException.  Previously, it was
     possible to get an IOException instead under certain
     circumstances on some platforms.

Thomas.


More information about the Biojava-l mailing list