Difference between revisions of "ART developers manual"
(→Creating a new art-decor.war package) |
|||
Line 1: | Line 1: | ||
=Creating a new art-decor.war package= | =Creating a new art-decor.war package= | ||
Steps to create the art-decor.war package: | Steps to create the art-decor.war package: | ||
− | * Download the Community version of Orbeon in zip format from: https://www.orbeon.com/download | + | * Download the Community version of Orbeon in zip format from: https://www.orbeon.com/download. For development versions we are running on version Orbeon 2018.1 |
* Rename orbeon.war to art-decor.war | * Rename orbeon.war to art-decor.war | ||
* Unzip | * Unzip | ||
Line 9: | Line 9: | ||
[[ART-DECOR_installation_on_linux#Edit_ART-DECOR_Orbeon_configuration|Edit ART-DECOR Orbeon configuration]] | [[ART-DECOR_installation_on_linux#Edit_ART-DECOR_Orbeon_configuration|Edit ART-DECOR Orbeon configuration]] | ||
* If your are running Orbeon 4.7, also update-xforms by running: art/modules/update-xforms.xquery | * If your are running Orbeon 4.7, also update-xforms by running: art/modules/update-xforms.xquery | ||
+ | * Create the war file: jar -cvf art-decor.war ./* | ||
=Creating new .xar packages= | =Creating new .xar packages= | ||
Line 26: | Line 27: | ||
For examples, see: https://sourceforge.net/p/artdecor/code-0/HEAD/tree/branches/stable/art/ | For examples, see: https://sourceforge.net/p/artdecor/code-0/HEAD/tree/branches/stable/art/ | ||
− | For more information on building | + | For more information on building xars, see: http://exist-db.org/exist/apps/doc/repo.xml |
=Creating a new version of an existing package= | =Creating a new version of an existing package= | ||
Line 41: | Line 42: | ||
The ART-DECOR repositories are updated daily to include the nightly .xar builds. Locations for the repositories are documented in the installation manual, see [[Download#Software|Download/software]]. | The ART-DECOR repositories are updated daily to include the nightly .xar builds. Locations for the repositories are documented in the installation manual, see [[Download#Software|Download/software]]. | ||
− | =ART-DECOR | + | =ART-DECOR testscenarios= |
− | The following | + | The following testscenarios can be used to test ART-DECOR software: |
* [[testscenario demo5]] | * [[testscenario demo5]] |
Revision as of 08:36, 10 September 2018
Contents
Creating a new art-decor.war package
Steps to create the art-decor.war package:
- Download the Community version of Orbeon in zip format from: https://www.orbeon.com/download. For development versions we are running on version Orbeon 2018.1
- Rename orbeon.war to art-decor.war
- Unzip
- Copy the configuration files from ART-DECOR repository into the folder. For version 4 Orbeon see:
https://sourceforge.net/p/artdecor/code-0/HEAD/tree/branches/stable/orbeon4/
- Edit your configuration, see:
Edit ART-DECOR Orbeon configuration
- If your are running Orbeon 4.7, also update-xforms by running: art/modules/update-xforms.xquery
- Create the war file: jar -cvf art-decor.war ./*
Creating new .xar packages
ART-DECOR software is deployed through eXist-db .xar packages with the eXist-db package manager. In order to create these packages, the following files should be present in a subversion software repository:
- build.xml: contains meta information on the package, and the version number (in major.minor.build form). For packages containing software the minor number is:
- even for stable releases
- uneven for development (trunk) releases
- expath-pkg.xml.tmpl: a generic template that should normally not be edited
- icon.png: the icon to display in the package manager when installing packages
- pre-install.xql: pre-installation procedure. This is usually package-specific.
- post-install.xql: post-installation procedure. This is usually package-specific and can contain permission settings for collections and files.
- repo.xml.tmpl: information to display in the package manager for this package. This is a generic template that should normally not be edited.
These files can be copied from an existing directory and adapted to this package.
When building .xar packages, a expath-pkg.xml and repo.xml is generated from the .tmpl and build.xml. In subversion there should be a git:ignore so that locally generated expath-pkg.xml and repo.xml are not included in subversion code.
For examples, see: https://sourceforge.net/p/artdecor/code-0/HEAD/tree/branches/stable/art/
For more information on building xars, see: http://exist-db.org/exist/apps/doc/repo.xml
Creating a new version of an existing package
- Commmit your software code, include an (English) subversion comment that describes your changes.
- build.xml: increment the build number:
Example:
<property name="project.version" value="0.989.32"/>
- commit the build.xml to the subversion repository
If the project.version is incremented, this can act as a trigger in the package manager to install this new version of the package.
ART-DECOR repositories
The ART-DECOR repositories are updated daily to include the nightly .xar builds. Locations for the repositories are documented in the installation manual, see Download/software.
ART-DECOR testscenarios
The following testscenarios can be used to test ART-DECOR software: