Set up source extraction Ant script

The WebSphere Commerce Build tool requires a custom source extraction Ant build file. Sample scripts can be found in...

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.*
Git wcbd-sample-extract-git.*

If no sample scripts are provided for our SCM, we can develop a custom script.


Before beginning

For Git support.

  1. Install a Git client and ensure the Git commands are in the system or user path.

  2. Clone the Git project to your local machine, and make sure the git pull command can be successfully executed.

    Use the ssh protocol to communicate with Git. Other protocols, such as https, are not supported.

  3. If we are using an alternative Git configuration, we can enable it by customizing the Ant script extract-git.xml.


Task info

The following steps use these conventions:

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


Procedure

  1. Set security-sensitive configurations that will be used in the extract process..

    1. If file...

      ...exists, copy the file as...

      For example,

        extract-svn-ts.private.properties

    2. Open the file with a text editor and configure the properties according to the comments in the file.

  2. Set non-sensitive configurations that will be used in the extract process.

    1. Copy file...

      ...as...

      For example,

        extract-svn-ts.properties

    2. Open the file with a text editor and configure the properties according to the comments in the file.

  3. Copy...

    ...as...

    For example,

      extract-svn.xml

  4. Edit file...

    ...and replace the name attribute of the root project element from wcbd-sample-extract-scm to extract-scm. For example, if the SCM is svn, then the WCB_installdir/extract-svn.xml should have the following line:

      <project name="wcbd-sample-extract-svn" default="all">

    ...changed to...

      <project name="extract-svn" default="all">


Related concepts
WebSphere Commerce Build tool repository structure
Advanced build features


Related tasks
Configure packaging settings
Build packages


Related reference
Build configuration references