On Oct 13, 2010, at 8:21 AM, C. M. Sperberg-McQueen wrote:
p.s. If there is a dmg package for 6.2.9, or instructions for integrating newer jar files into an existing BaseX.app, I'd be grateful for a pointer -- the color highlighting of syntax problems is a good help!
In case other Mac users need to upgrade their BaseX.app to new jar files and don't already know how, I'll just record that the following procedure worked fine for me:
(1) in a shell window, navigate to
/Applications/BaseX.app/Contents/Resources/Java/repo/org/basex/basex
In my case, this contained a directory named 6.1, containing basex-6.1.jar.
(2) Create a 6.2 directory, and copy the new jar file into it. In my case:
mkdir 6.2; mv ~/Downloads/basex-6.2.9.jar ./6.2
(3) Edit the file /Applications/BaseX.app/Contents/info.plist in an XML editor. Find the key/value pair for ClassPath and change it appropriately. In my case, this meant changing
<key>ClassPath</key> <array><string>$JAVAROOT/repo/org/basex/basex/6.1/basex-6.1.jar</string></array>
to
<key>ClassPath</key> <!--* <array><string>$JAVAROOT/repo/org/basex/basex/6.1/basex-6.1.jar</string></array> *--> <array><string>$JAVAROOT/repo/org/basex/basex/6.2/basex-6.2.9.jar</string></array>
Save the file.
(4) Relaunch BaseX.
In case of difficulty, check to make sure you didn't accidentally render the info.plist document ill-formed.
There may be other better ways to do this, but this seemed simple enough to me.