Project defines a project with can be used within a workspace.
Since a project definition describe details of a project it is conceivable
that a project definition could have uses outside of Alexandria where a description
of a group of code is required. A possible use for may be to allow a process
download build and configure code from a single URL.
- <project> - root element for the project definition
- @repository - repository to retrive project source code from
- @opensource - denotes that the source code should be displayed
- <title> - title of the project
- <module> - module name used to identify the project within
a repository
- <license> - license under with the project is distributed
- @href - Location of the license
- <description> - description of the project
- <javasrc> - root of java src for the project
- <build> - build definition for the project
- @file - ant build file to be used to build the project (defaults
to build.xml)
- @target - ant target to be used to build the project (defaults
to the default in the build file)
- @classpath - classpath to be used by ant when building the project
- <arg> - ant build parameter to be used by the build
- @name - name of the parameter
- @value - value for the parameter
- <test> - test definition for a project
- @file - ant build file to be used to test the project
- @target - target to be used to test the project
- @classpath - classpath to be used by ant when testing the project
- <arg> - ant build parameter to be used by the build
- @name - name of the parameter
- @value - value for the parameter
- <depend> - defines a dependency on another project in the workspace
- @project - name of the project
- <option> - defines an optional dependency on another project
in the workspace
- @project - name of the project
- <jar> - defines an outputted jar from this project
- <project> - project can be nested within each other to define subprojects
Example Project Definition:
|
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<project repository="jakarta.apache.org" opensource="true">
<title>Alexandria</title>
<module>jakarta-alexandria</module>
<license>ASL</license>
<description>Internet content management system</description>
<home-page>http://jakarta.apache.org/alexandria/</home-page>
<javasrc>src/java</javasrc>
<build file="build.xml">
<arg name="build.dir" value="../build"/>
</build>
</project> |
|
|
|
|