2,248 bytes added
, 16:34, 19 January 2012
This module contains functions for managing [http://expath.org/modules/pkg/ EXPath packages]. You can read more about BaseX' implementation of the EXPath Packaging API [http://docs.basex.org/wiki/Packaging/ here]
==pkg:install==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>pkg:install</b>($path as xs:string) as empty-sequence</code><br />
|-
| valign='top' | '''Summary'''
|Installs a package. The parameter <code>$path</code> indicates the path to the package on the file system.<br />
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#Packaging Errors|PACK0001]]</b> is raised if the package does not exist.<br /><b>[[XQuery Errors#Packaging Errors|PACK0002]]</b> is raised if the package is already installed.<br /><b>[[XQuery Errors#Packaging Errors|PACK0003]]</b> is raised if the package to be installed requires a package which is still not installed.<br /><b>[[XQuery Errors#Packaging Errors|PACK0004]]</b> is raised if the package descriptor is invalid.<br /><b>[[XQuery Errors#Packaging Errors|PACK0005]]</b> is raised if the module contained in the package to be installed is already installed as part of another package.<br /><b>[[XQuery Errors#Packaging Errors|PACK0006]]</b> is raised if the package cannot be parsed.<br /><b>[[XQuery Errors#Packaging Errors|PACK0009]]</b> is raised if the package version is not supported.<br /><b>[[XQuery Errors#Packaging Errors|PACK0010]]</b> is raised if the package contains an invalid JAR descriptor.<br /><b>[[XQuery Errors#Packaging Errors|PACK0011]]</b> is raised if the package contains a JAR descriptor but it cannot be read.<br />
|}
==pkg:delete==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>pkg:delete</b>($pkg as xs:string) as empty-sequence</code><br />
|-
| valign='top' | '''Summary'''
|Deletes a package. The parameter <code>$pkg</code> indicates either the package name as specified in the package descriptor or the name of the directory where the package is installed.<br />
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#Packaging Errors|PACK0007]]</b> is raised if the package cannot be deleted.<br /><b>[[XQuery Errors#Packaging Errors|PACK0008]]</b> is raised if another package depends on the package to be deleted.<br /><b>
|}