ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ritesh Trivedi" <rit...@embracenetworks.com>
Subject Re: directory name?
Date Wed, 21 Aug 2002 17:41:22 GMT
You can use ${basedir} property anywhere in the Ant build file which can be
set to the current directory since its one of the attributes in the project
element.
Another way to get the current directory is to do the following

<property name="cwd" location="." />

Not tested but should work, since location substitues the value with the
absolute path on the system.

Thanks

Ritesh

================================
Ritesh Trivedi
Embrace Networks
408-585-5621
----- Original Message -----
From: "Glenn Kidd" <GKidd@placeware.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Wednesday, August 21, 2002 10:36 AM
Subject: directory name?


> What is the best way to get the current directory name, e.g. suppose I am
located in "/home/bob/work/stuff", I want to be able to get "stuff" as a
property.  What is the best way to achieve this?  Thanks in advance.
>
>
> Glenn
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message