Configuration options
Salvora first version started as a command line tool cappable of configuring thre main folders data (writable), form (for your XForms) and xsltforms for the XsltForms distribution. This basic configuration is maintained and you can use it as the easyest way to start with Salvora.
You can also define a configuration xml file where you can define document collections, transformations, processes with XProc triggers, map request parameters and path name portions to collections and transformations.
Command Line configuration.
The following parameters can be passed to the Server. :
Parameters.
- -h: Show this help message
- -f:<path> Form folder path. Default form. This param is not considered if a mapping file (-m) is provided.
- -x:<path> XSltForms folder path. Default xsltforms. This param is not considered if a mapping file (-m) is provided.
- -f:<path> Data folder path. Default data. This param is not considered if a mapping file (-m) is provided.
- -p:<number> Port number (integer). Default 8080
- -e:<boolean> true/false Enabled or disabled external access. Default false
- -m:<file path/name> The name of the mapping file. If the mapping file is provided, the command line defined folders are not taken in consideration. The access port number and external access param is considered even if a mapping file is provided.
Examples.
- java -jar salvora-<version>.jar
- java -cp salvora-<version>.jar net.vionta.salvora.server.Salvora -f:forms -x:xforms -p:8081
- java -jar salvora-<version>.jar -e:false
- java -jar salvora-<version>.jar -m:mapping-file.xml
- java -jar salvora-<version>.jar -m:mapping-file.xml -e:true -p:8082
Remember that if you use a mapping file, the command line defined folders, or even the default ones, are not considered.
Jump to content