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]
