Setting up the source extraction Ant script

The WebSphere Commerce Build and Deployment tool requires you to provide a custom source extraction Ant build file. This file is run as part of the build process.

The WCBD_installdir/extract directory includes sample scripts for some SCMs:
SCM Sample script
CVS wcbd-sample-extract-cvs.*
ClearCase wcbd-sample-extract-clearcase.*
Local file system wcbd-sample-extract-local.*
Subversion wcbd-sample-extract-svn.*

If no sample scripts are provided for your SCM, you can develop a custom script. For more information, see Customizing the build process.

About this task

In the following steps, scm refers to one of cvs, clearcase, local, or svn.

Procedure

  1. If WCBD_installdir/extract/wcbd-sample-extract-scm.private.properties exists, copy the file as WCBD_installdir/extract-scm.private.properties.
  2. Copy WCBD_installdir/extract/wcbd-sample-extract-scm.properties as WCBD_installdir/extract-scm.properties.
  3. Copy WCBD_installdir/extract/wcbd-sample-extract-scm.xml as WCBD_installdir/extract-scm.xml.
  4. LinuxAIXChange the file permission with the following command:
    chmod 755 WCBD_installdir/extract-scm.*
  5. Open WCBD_installdir/extract-scm.xml with a text editor and replace the name attribute of the root project element from wcbd-sample-extract-scm to extract-scm.
    For example, if the SCM is CVS the WCBD_installdir/extract-cvs.xml should have the following line:
    • <project name="wcbd-sample-extract-cvs" default="all">
    changed to:
    • <project name="extract-cvs" default="all">
  6. If step 1 is applicable, open WCBD_installdir/extract-scm.private.properties with a text editor and configure the properties according to the comments in the file.
  7. Open WCBD_installdir/extract-scm.properties with a text editor and configure the properties according to the comments in the file.