I've just built the version of basex and basex-api from master and it seems that -b does not work as before. In fact it does not seem to pass the variable.
Works on my machine (Windows). Do you have Linux? In that case, $ will probably be evaluated by the shell (wondering, though, why it was working before).
java -cp target/basex-7.3-SNAPSHOT.jar org.basex.BaseX -b$v=example -q$v Stopped at line 1, column 1: [XPST0003] Empty query.
On Tue, Jun 5, 2012 at 8:49 PM, Christian Grün christian.gruen@gmail.com wrote:
Hi Philippe,
good point. As this has been irritating for other users as well, we've finally changed the behavior just some days ago. Feel free to check out the latest snapshot.
Christian ___________________________
On Wed, Jun 6, 2012 at 2:47 AM, Philippe Rathé prathe@gmail.com wrote:
Hello there,
I'm using the CLI to load a xml file from my file system:
java -cp basex.jar org.basex.BaseX -i myfile.xml myscript.xqy
The first time I run the command, everything is fine, my file is loaded and my xquery script is executed. But the second time I run it, whenever I change the content of myfile.xml, it is not taken in consideration. I realized that it stores my file in the database the first time and after that it loads it from the database.
I was confused because it worked the first time. Could it refresh the content of the database whenever a file exists? And fallback to open the file from database when the specified file does not exist?
Whatever, maybe just a clarification about the behavior in the doc could prevent bad usage.
Thanks. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk