Why do you find you need to use CLI?  If there is a good reason, I can make
the functionality available through the standard API.  I'd rather CLI not be
used as a library.

On Fri, Apr 13, 2001 at 01:44:38PM +1200, David McNab wrote:
> Sorry, Oskar.
> 
> BTW - Freenet.client.CLI.library is a little flag in
> Freenet/client/CLI.java. I felt very relieved to discover it.
> 
> If set to 'false' (which is the default), then CLI-derived classes such as
> RequestClient do a System.exit() when they complete an operation.
> This is ideal when such methods are invoked as a result of a CLI command,
> such as 'freenet_request' issued from a shell command or script, when
> control needs to be returned promptly to the invoking shell.
> 
> But if Freenet.client.CLI.library is set to false, then CLI methods will
> return to the caller without performing System.exit().
> This makes it possible for other classes to invoke these methods as 'library
> routines'.
> 
> Such is convenient for newbie client writers, and total Java newbies, like
> me.
> Especially since there is much existing logic in the CLI-derived classes
> which is difficult to 'de-couple' from CLI without replicating it
> (reinventing the wheel) in another class space.
> 
> David

-- 

# tavin cole
#
# "The process of scientific discovery is, in effect,
#  a continual flight from wonder."
#                                   - Albert Einstein


_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

>From devl-admin at freenetproject.org  Fri Apr 13 09:43:27 2001
Return-Path: <devl-admin at freenetproject.org>
Received: from hawk.freenetproject.org (postfix@[4.18.42.11])

Reply via email to