Thanks Erik for correcting me,
I feel a bit stupid: I actually looked at the api to make sure that I
wasn't in left field, but I trusted common-sense and stopped at the
constructor ;)
Should this property be changed in the next major release of lucene to
org.apache...disableLuceneLocks?
sv
On Mon, 23 Aug 2004, Erik Hatcher wrote:
>
> On Aug 23, 2004, at 10:48 AM, Stephane James Vaucher wrote:
> > I haven't used it, and I'm a little confused from the code:
> > /** ...
> > * <p>If the system property 'disableLuceneLocks' has the String value
> > of
> > * "true", lock creation will be disabled.
> > */
> > public final class FSDirectory extends Directory {
> > private static final boolean DISABLE_LOCKS =
> > Boolean.getBoolean("disableLuceneLocks") || Constants.JAVA_1_1;
> > ...
> >
> > I don't see a System.getProperty(String).
>
> :)
>
> check the javadocs for Boolean.getBoolean()
>
> It's by far one on of the dumbest and most confusing API's ever!
> (basically this does a System.getProperty("disableLuceneLocks") and
> converts it to a boolean.
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]