Changes

Jump to navigation Jump to search
4 bytes added ,  12:56, 12 March 2018
* First, the '''system property''' {{Code|org.basex.path}} is checked. If it contains a value, it is chosen as directory path.
* If not, the '''current user directory''' (defined by the system property {{Code|user.dir}}) is chosen if the {{Code|.basex}} or {{Code|.basexhome}} file is found in this directory.
* OtherwiseIf not, the files are searched in the '''application directory''' (the folder in which the BaseX code is located)is chosen if one of these two files is found. * In all other cases, the '''user's home directory''' (defined in {{Code|user.home}}) is chosen.
If BaseX is used in an embedded environment (such as a servlet in a [[Web Application]]), it may not immediately be clear what directory was chosen. In this case, you can run the XQuery expression <code>Q{org.basex.util.Prop}USERHOME()</code> to find out.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu