From: Wolfgang M. <wol...@ex...> - 2011-02-23 13:30:35
|
I extended eXist's expath package repository with additional deployment features. There's a new function repo:deploy to install an application package. The repo.xml package descriptor format has been extended to allow pre-/post-setup XQuery scripts to be run automatically, configure the target collection and default permissions. The documentation (http://localhost:8080/exist/repo/repo.xml) describes this. When you build eXist trunk, you'll find a number of installable .xar packages in webapp/repo/packages. Those can be uploaded to the repository using the corresponding page of the admin web app (http://localhost:8080/exist/admin/admin.xql?panel=repo). I added an example, the mobile XQuery function docs browser, which is based on jQuery mobile and provides optimized access to the XQuery function docs for mobile devices. To install it, use the "Upload package" button on the "Package Repository" page of the admin web app. After uploading, click "activate", then "deploy". The post-install script automatically loads and indexes the function docs. After deployment, you should be able to go to http://localhost:8080/exist/apps/mobiledocs/ and browse the docs. In the future, the package repository should become the central mechanism to distribute and install applications into eXist. More work will be required to make this process more user-friendly. In particular, the admin page needs to be improved. Wolfgang |