ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Rathnow <>
Subject Can properties be returned to a calling ant script?
Date Fri, 15 Nov 2002 00:39:09 GMT

My quest for the perfect build environment continues....

I've been asked to avoid using environment variable in our
build procedures so I've been trying to find a way to have
Ant take care of telling me the position/location of certain
files and directories.

I figured a good way was to have a single common build script
that knew it's location relative to the top of the project
directory and then defined properties that could be used by
the subprojects, but I've found two problems:

1. Can you translate the path from a relative to absolute name 
and then to it's platform format. (We develop on Windows and

2. Can you have a called Ant script define properties which 
can be picked up by the calling Ant script.

Or, the obvious question, is there a better way to do this?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message