Welcome to the org.apache.forrest.plugin.input.doap Plugin
Apache Forrest - org.apache.forrest.plugin.input.doap Plugin
Renders DOAP files in a human readable form, provides various indexes of DOAP collections and allows the extraction of contact details from a set of DOAP files.
Project Details
Project details are generated from a project descriptor file. This file can be in any of the followin formats:
- DOAP
- DOAP over ATOM
The location of this descriptor file is specified in the locationmap with the hint doap.descriptor. This defaults to a file clled doap.xml in the root of your projects content directory. To place your descriptor in a different location simply add a matcher like that shown below in your project locationmap file.
<match pattern="doap.descriptor.projectDetails"> <location src="[path/to/descriptor/file]" /> </match>
To retrieve the project DOAP file in its raw form request the file /projectDetails/source.xml.
To retrieve the project details page request the file /projectDetails.[FORMAT].
Multiple Projects
You can use the projectInfo plugin to pull together project information for multiple projects. For example, take a look at the project details for Apache Forrest.
Using the locationmap you can retrieve this content from anywhere you want, for example, the DOAP file for the Forrest project comes from directly from SVN, thus we are always assured of it being up to date.
To retrieve the project details of another project make a request for projectDetails/[PROJECT_NAME].html. For this to work your project locationmap must have an entry like this:
<match pattern="doap.descriptor.forrest"> <location src="http://svn.apache.org/repos/asf/forrest/trunk/site-author/content/doap.xml"/> </match>
Of course, if you have a central location for all your project descriptor files you could use a match like this:
<match pattern="doap.descriptor.*"> <location src="path_to_descriptors/{1}.xml"/> </match>
Project Indexes
The system will automatically create an index of projects from your projects locationmap file. For example, the "Projects" section of the navigation on the left is automatically generated.
Contact Lists
You can extract a comma separated list of contact details contained in the collection of DOAP files by requesting projectDetails/contacts.csv.
Dispatcher
The DOAP plugin provides dispatcher templates for working with DOAP files. For usage instructions see the docs for the doap templates.
Samples
This section includes links to a number of samples using this plugin. The plugin is intended to be self documenting through these samples. If you require further help please ask on the user mailing list.
- Source XML file
- Source RDF file (if the source file is an RDF/XML file this will be the same as the previous example - currently only RDF/XML is supported)
- Descriptor page for this plugin
- Descriptor page for Forrest
- Index by language
- Index by specific language (Java)
- Index by category
- Comma separated list of project contacts who have a recorded email address