This is probably an elementary question but I am using basex on windows and trying to invoke the program with -o option, but it keeps choking on the space in the file name. I've tried escaping the name with \ but to no avail. Heres the line:
C:>java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:\Documents and Settings\reedrw\My Documents\audit.xml" "C:/Documents and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq"
The error is: Error: File or directory "and Settings\reedrw\My Documents\audit.xml C:/Document s and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq" not found.
So it looks to me that the -o has stopped at the space and then it hast taken the rest as the full path of the actual query. Just to be clear I have tried it java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:/Documents and Settings/reedrw/My Documents/audit.xml" "C:/Documents and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq"
as well and that generates the same error
thanks in advance
Dear Randy,
thanks for your observation. This issue is related to some other issues reported in one of our GitHub issues..
https://github.com/BaseXdb/basex/issues/154
..and I have just added your remark. Just another motivation to fix this pretty soon (there are lots of similar issues around the current command lnie parsing).
We'll keep you updated, Christian
___________________________
On Thu, Nov 10, 2011 at 9:23 PM, Randy reed randywreed@gmail.com wrote:
This is probably an elementary question but I am using basex on windows and trying to invoke the program with -o option, but it keeps choking on the space in the file name. I've tried escaping the name with \ but to no avail. Heres the line:
C:>java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:\Documents and Settings\reedrw\My Documents\audit.xml" "C:/Documents and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq"
The error is: Error: File or directory "and Settings\reedrw\My Documents\audit.xml C:/Document s and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq" not found.
So it looks to me that the -o has stopped at the space and then it hast taken the rest as the full path of the actual query. Just to be clear I have tried it java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:/Documents and Settings/reedrw/My Documents/audit.xml" "C:/Documents and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq"
as well and that generates the same error
thanks in advance
-- Dr. Randall Reed Assistant Professor, Dept. of Philosophy and Religion Appalachian State University
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Randy,
I have reworked our command line API, and your problems should now be fixed in the latest snapshot.
http://files.basex.org/releases/latest/ http://docs.basex.org/wiki/Startup_Options_(Snapshot)
Your feedback is welcome, Christian ___________________________
On Thu, Nov 10, 2011 at 9:23 PM, Randy reed randywreed@gmail.com wrote:
This is probably an elementary question but I am using basex on windows and trying to invoke the program with -o option, but it keeps choking on the space in the file name. I've tried escaping the name with \ but to no avail. Heres the line:
C:>java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:\Documents and Settings\reedrw\My Documents\audit.xml" "C:/Documents and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq"
The error is: Error: File or directory "and Settings\reedrw\My Documents\audit.xml C:/Document s and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq" not found.
So it looks to me that the -o has stopped at the space and then it hast taken the rest as the full path of the actual query. Just to be clear I have tried it java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:/Documents and Settings/reedrw/My Documents/audit.xml" "C:/Documents and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq"
as well and that generates the same error
thanks in advance
-- Dr. Randall Reed Assistant Professor, Dept. of Philosophy and Religion Appalachian State University
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de