On 2010-04-13, Raja Nagendra Kumar <[email protected]> wrote:
> Stefan,
>> If you really want the directory that contains the build file
> Yes, I am looking for a way to reference dir that contains the build
> file. this location is different than basedir.
Take the approach described in the manual page for <import>.
> In my case, the project does not have any name, hence as generic
> approach of referring to this file would help a lot..
The location of the main build file is ${ant.file} - otherwise your
project must have a name.
> similar lines to 'this ' used in java.
${ant.file} is the "this" of the main build file, for any
imported/included file we need a different "this" and given the
immutability of properties we need different names for them - this is
only possible if we have something meaningful (ant.file.SOME_GUID
wouldn't help anybody) and thus need the build file writer's help via
<project>'s name attribute.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]