Grunt task to unload or clean out an eXist package
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-exist-unload --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-exist-unload');
In your project's Gruntfile, add a section named exist_unload
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
exist_unload: {
options: {
host: 'localhost',
port: 8080,
loginUser: 'admin',
loginPassword: '',
packages: [],
clean: true
}
}
});
Type: String
Default value: 'locahost'
Name or I/P of host where the eXist database is running.
Type: Integer
Default value: 8080
Port number of the eXist database instance.
Type: String
Default value: 'admin'
Administrator login name.
Type: String
Default value: none
Administrator password. There is no default value.
Type: array
Default value: none
A (possible) list of package names which are to be unloaded. Each entry is a string.
Type: boolean
Default value: false
If true then no error is raised if the plugin fails to deinstall a package. The reply from eXist is always failure when the package was not installed or when it's name is misspelt.
grunt.initConfig({
exist_unload: {
options: {
host: 'localhost',
port: 8080,
loginUser; 'admin',
loginPassword: 'eXist',
packages: ['http://www.programationinformatique.fr/JonathanTest'],
clean: false
}
}
});
(Nothing yet)