setting global options
Monday, 7 April 2014 · 2 messages · last reply 8 Apr 2014
JR
Jason Ricles7 Apr 2014 22:13 #
To whom it may concern,
Is there any way to set the globaloptions of basex such as globallock?
Since I currently keep executing
*context.globalopts.set(GlobalOptions.GLOBALLOCK, true) ;*
*System.out.println(context.globalopts.GLOBALLOCK);*
and when the print statement executes, it says that globallock = false, even though I have set it to true.
Sincerely,
Jason R
CG
Christian Grün8 Apr 2014 13:30 #
Hi Jason,
try this:
System.out.println(context.globalopts.get(GlobalOptions.GLOBALLOCK));
Christian
Quoted text · Jason Ricles · 17 lines
On Mon, Apr 7, 2014 at 8:13 PM, Jason Ricles <jason.ricles at mikrossystems.com> wrote: > To whom it may concern, > > Is there any way to set the globaloptions of basex such as globallock? > > Since I currently keep executing > > context.globalopts.set(GlobalOptions.GLOBALLOCK, true) ; > System.out.println(context.globalopts.GLOBALLOCK); > > and when the print statement executes, it says that globallock = false, even > though I have set it to true. > > Sincerely, > > Jason R
Written for BaseX 7.8. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery