On Wed, 25 Jan 2006, Tommy Nordgren <[EMAIL PROTECTED]> wrote:

> Quoting the following example from "Extreme Programming with Ant"

Unfortunately that advice is not that good anymore.  If you are using
Ant 1.6.0 or later, use <import> instead of entity includes.

> Where can I put files for entities, so that they are available to
> ALL my projects?

In general, anywhere where it pleases you, you can use relative and
absolute paths to locate them, but this is probably far easier with
<import> (in particular since you can use Ant properties to define the
path).

Use something like

<project name="eMarket" default="compile" basedir=".">

    <property file="${user.home}/.ant/sales.properties"/>
    <import file="${import.base}/sales.xml"/>
    <import file="${import.base}/common.xml"/>
</project>

and have you developers create a sales.properties in their home
directory.  In that file they can set define the path to their copy of
the common import files.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to