Documentum Composer Quick Start Guide
Documentum Composer Quick Start Guide
Composer
Version 6.5
EMC Corporation
Corporate Headquarters:
Hopkinton, MA 01748‑9103
1‑508‑435‑1000
www.EMC.com
Copyright © 2008 EMC Corporation. All rights reserved.
Published July 2008
EMC believes the information in this publication is accurate as of its publication date. The information is subject to change without notice.
THE INFORMATION IN THIS PUBLICATION IS PROVIDED AS IS. EMC CORPORATION MAKES NO REPRESENTATIONS OR WARRANTIES
OF ANY KIND WITH RESPECT TO THE INFORMATION IN THIS PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES
OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Use, copying, and distribution of any EMC software described in this publication requires an applicable software license.
For the most up‑to‑date listing of EMC product names, see EMC Corporation Trademarks on EMC.com.
All other trademarks used herein are the property of their respective owners.
EMC Documentum Technical Document
Table of Contents
What is Composer?
Composer is the next generation development tool for developing, building, and installing
Documentum artifacts which are organized into projects. Most of the DAB/DAI functionality is
available in Composer but there are several fundamental differences in concepts and terminology.
The most important difference is that unlike DAB, Composer does not require a repository
connection in order to view or modify application artifacts. You only need to connect to a
repository when you want to install your projects or import existing objects.
Composer is shipped in two versions, the UI‑based version with wizards, dialogs, and editors,
and a non‑UI command line version that includes a set of Ant tasks for each of the common
Composer functions, such as import, build, and install. The non‑UI version of Composer is also
referred to as headless Composer.
UIbased Composer
The Composer GUI should be used for all development tasks, such as developing an application
from scratch or modifying an existing project. You also need to use the Composer GUI for
importing 5.3 DocApps and DocApp archives.
Note: You cannot import a DAR file into Composer. A DAR file is similar to an executable file. It
contains only the binary code and no source files.
Headless Composer
Headless Composer is most useful when you do not want to make any changes to a project but
want to automate compiling an existing project and installing the DAR into a repository.
Note: Headless Composer cannot be used to create new projects or new artifacts.
For more detailed information on how to install and configure Composer, see Chapter 1 in the
Composer User Guide.
Using Composer
After you have installed Composer, you are ready to work on Documentum projects. You can
create a project from scratch, migrate a 5.3 DocApp or DocApp archive into Composer, or import
an existing project from a local directory. Figure 1, page 6 describes a typical workflow in
Composer.
For detailed example on how to use headless Composer to install a DAR file, see Installing
a DAR File, page 10.
Code Description
Code Description
Specifies the workspace that is
set BUILDWORKSPACE="c:\<..>\
used when a project is build.
ComposerHeadless\<build_workspace>"
Specifies the path and the name
set BUILDFILE="R:\<path>\<buildfile>.xml"
of the build file that contains the
required parameters for building
a project.
Specifies the path and the name of
set INSTALLFILE="R:\<path>\<installfile>.xml"
the file that contains the required
parameters for installing a DAR
file.
Specifies the directory where the
set DARPROJECTSDIR="R:\<path>\<directory>"
generated DAR file is stored.
Specifies the workspace that is
set INSTALLWORKSPACE="c:\<..
used when a DAR file is installed.
>\ComposerHeadless\
<install_workspace>"
Removes all directories and files in
rmdir /S /Q %BUILDWORKSPACE%
the build and install workspaces
rmdir /S /Q %INSTALLWORKSPACE%
and copies the project files into
xcopy %DARPROJECTSDIR% %BUILDWORKSPACE% /E /I
the build workspace and DAR file
into the install workspace.
Sets the Java parameters for the
java cp %ECLIPSE%\startup.jar org.eclipse.
build workspace and build file.
core.launcher.Main
All parameters must be entered
data %BUILDWORKSPACE%
on the same line without any line
application org.eclipse.ant.core.antRunner
breaks.
buildfile %BUILDFILE%
Sets the Java parameters for
java cp %ECLIPSE%\startup.jar org.eclipse.
the installation workspace and
core.launcher.Main
installation file. All parameters
data %INSTALLWORKSPACE%
must be entered on the same line
application org.eclipse.ant.core.antRunner
without any line breaks.
buildfile %INSTALLFILE%
Where <batch file> is the name of the batch file and <build file> is the name of the build file.
1. Create the build file that imports the project, builds the project, and generates the DAR file
using the emc.importProject, emc.build, and emc.dar Ant tasks.
The following DARBuild.xml example build file contains the code to import and build the
SmartContainer project, and to generate the SmartContainer.dar.
<?xml version="1.0"?>
<project
name="buildsmartcontainer" XML declarations and tags.
default="build">
<target name="build">
Imports the
<emc.importProject
SmartContainer project.
dmproject="SmartContainer"
failonerror="true"/> The failonerror parameter
specifies that the import
fails if any errors are
encountered during the
import process.
Generates the
<emc.dar
SmartContainer.dar file
dmproject="SmartContainer"
from the SmartContainer
manifest="bin/dar/
project.
smartcontainer.dardef.artifact"
dar="c:/ComposerHeadless/ The manifest parameter
build_workspace/SmartContainer/ specifies the location of
SmartContainer.dar"/> the manifest file, which
contains the packaging
instructions for the DAR
file.
2. Create the build file that installs the DAR file into the repository.
The following example DARInstall.xml build file contains the code to install the
SmartContainer.dar.
<?xml version="1.0"?>
<project name="installsmartcontainer" XML declarations and tags.
default="install">
<target name="install">
<emc.install
dar="c:/ComposerHeadless/build_workspace/
SmartContainer/SmartContainer.dar" Installs the SmartCon‑
docbase="repo1" tainer.dar file in the repo1
username="user" repository.
password="aabbcc"
domain="" />
4. Build the project and generate the DAR file by running the Ant task, as follows:
C:\ComposerHeadless> SmartContainerBuild.bat DARBuild.xml