In Ant, targets and properties may be overridden during the course of building a module and its sub-modules. Maintaining the priority order of targets and properties, therefore, is key to configuring the Ant build project so that it behaves as expected. The buildtools/common.xml file is written specifically to handle these issues and should be imported by all Commerce Reference Store modules. For example, the build.xml file for the Store.Estore module looks like this:

<project name="estore" default="all" basedir=".">
  <property name="global.dir" value="${basedir}/.."/>
  <import file="${global.dir}/buildtools/common.xml"/>

The following sections provide more information on how use of the common.xml file maintains the order of targets and properties.

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices