Download EMC Documentum Composer User Guide
Transcript
Chapter 21 Managing Projects and DAR Files Using Ant tasks and Headless Composer Headless Composer is the non-UI command line version of Composer that includes a set of Ant tasks for common build and deployment features of Composer, such as import, build, and install. Creating a headless Composer build A headless Composer build allows you to automate the build and installation of Composer projects. A headless Composer build consists mainly of two parts: Ant scripts that define the build and a batch file that sets up the build environment and runs the Ant scripts. Creating Ant scripts to build, modify, and install Composer projects Ant scripts are XML files that define your build. Composer provides Ant tasks that allow you to call certain Composer functionality from an automated build. In general, create two separate Ant build files that build your projects and install your projects. The Ant scripts should be encoded in UTF-8 to ensure proper functionality. To create the Ant scripts: 1. Create a file named build.xml. 2. Create a target to import the projects that you want to work with into the headless Composer workspace with the emc.importProject task. You can also create new projects with the emc.createArtifactProject task. You either have to create or import a project into the workspace before you call any other Ant task. 3. Make modifications that you want to the project with the emc.importArtifacts or emc.importContent tasks. 4. Create a target to build the project with the emc.build task. Call this task before the emc.dar task to ensure that the DAR file contains the latest built code. EMC Documentum Composer Version 6.6 User Guide 213