ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent <vincen...@gmail.com>
Subject Re: What is $.. ?
Date Sat, 21 Apr 2007 10:13:55 GMT
You can try replace the first line to
<property name="projects.dir" value="$aaa" /> then try it again.

On 4/21/07, Douglas McCarroll <mccarroll.douglas@gmail.com> wrote:
> Hi All,
>
> I ran across "$.." in an Ant file and am trying to understand what it
> does. Can't find any documentation. So basic as to not require explanation?
>
>
> When I run a C:\Projects\build.xml file with this code in it:
>
>   <property name="projects.dir" value="$.." />
>   <dirname property="projects.dirname" file="${projects.dir}"/>
>   <dirname property="logfiledirname" file="${projects.dir}\AntLog.log"/>
>
>   <echo message="${projects.dir}"/>
>   <echo message="${projects.dirname}"/>
>   <echo message="${projects.dir}\AntLog.log"/>
>   <echo message="${logfiledirname}"/>
>
>
> I get this:
>
>     [echo] $..
>     [echo] c:\Projects
>     [echo] $..\AntLog.log
>     [echo] c:\Projects\$..
>
>
> The first three echoes would make sense to me if $.. indicated the
> current directory, but a single dot does that. What's the difference?
>
> The fourth echo doesn't make sense to me at all...
>
> Douglas
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message