Hi together,
I have a question regarding the baseX add command. We change the user.dir system property in the basexserver.bat as shown below:
java -Duser.dir=c:/tmp -cp "%CP%" %VM% org.basex.BaseXServer %*
This is done with the background of defining an export/import directory without using absolute paths with the add command itself (we deploy our setup from version control to different directory environments, and it should work "out-of-the-box").
1. With exporting, this seems to work fine except for a minor issue: in addition to the successful export to c:\tmp, an empty folder is created in the basex/bin directory with the name of the exported db.
2. With adding, we always get the error message " Resource "C:/tmp/test.xml" not found.", even if test.xml exists in the filesystem at c:\tmp. However, if we copy test.xml to the basex/bin-folder, the add command is successful. It seems that though the error message relates to the correct (modified) path, baseX uses the default one when trying to add the file?
Would it be possible to fix this issue, or is there another way to achieve the intended behavior?
Best Regards Simon