- Follow the general instructions to prepare for installation from source.
- Check out the 0.9 release of the elements module library from ModuleForge into the source directory under CTIER_ROOT. For example:
$ svn co https://moduleforge.svn.sourceforge.net/svnroot/moduleforge/tags/elements/0.9 ~/ctier/src/elements
.
.
.
Checked out revision 133.
-
Add a new project (example: headlines) to Workbench or choose an existing project.
- Create the Antdepo depot for the project (if necessary). Example:
$ depot-setup -p headlines -a create
.
.
.
Calling Get-Properties from the Managed-Entity module for node: localhost
- Create a ProjectBuilder object to manage packaging the Elements library's modules. For example:
$ ad -p headlines -t ProjectBuilder -o elements -c Register -- -basedir ${CTIER_ROOT}/src/elements/modules -installroot ${CTIER_ROOT}/src/elements -install -description "Elements module library builder"
.
.
.
For more information about this object run: ad -p headlines -t ProjectBuilder -o elements -c Get-Properties -- -print
[command.timer.Deployment.Register: 5.012 sec]
- Build the Elements module library from source.
$ ad -p headlines -t ProjectBuilder -o elements -c build-library -- -name elements
.
.
.
Building jar: ~/ctier/src/elements/elements-seed.jar
[command.timer.build-library: 10.253 sec]
-
Run the Ant build file from the Headlines demonstration source directory to setup the installed files and directories:
Note
It is possible to override the "ctier_root" property on the Ant build command line to provide a value other than the default of the CTIER_ROOT environment variable. This is useful for creating a minimal "skeleton" hierarchy suitable for release using the "package" target.
$ pwd
~/ctier/src/elements/demo/headlines
$ ant dist
Buildfile: build.xml
dist:
[echo] Installing headlines directories and files into "~/ctier" ...
[copy] Copying 1 file to ~/ctier/demo/headlines/data
[copy] Copying 1 file to ~/ctier/demo/headlines/objects
[copy] Copying 48 files to ~/ctier/demo/headlines/cvs
BUILD SUCCESSFUL
Total time: 0 seconds
- Load the seed jar using ProjectBuilder by giving the following command:
Note
You must give the full path to the file elements-seed.jar.
ad -p headlines -t ProjectBuilder -o elements -c load-library -- -jar elements-seed.jar
-
Populate the project with the Headlines demonstration's sample objects using the provided Project XML file. For example:
$ ad -p headlines -t ProjectBuilder -o elements -c load-objects -- -format projectxml -filename $CTIER_ROOT/demo/headlines/objects/project.xml
.
.
.
Executing batch update ...
[command.timer.load-objects: 10.715 sec]