ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas McCarroll <list.ant-user....@brightworks.com>
Subject Re: How to echo path?
Date Thu, 05 Apr 2007 02:29:35 GMT
> You're welcome.  ;)

Thanks!



Matt Benson wrote:
> The recommended way to do this uses the <pathconvert>
> task.  In Ant 1.6.5:
>
> <pathconvert refid="my.path.id" property="my.path" />
> <echo>$${my.path}=${my.path}</echo>
>
> In Ant 1.7:
>
> <pathconvert refid="my.path.id" />
>
> You're welcome.  ;)
>
> -Matt
>
> P.S.  You -could- also use
> <echo>${toString:my.path.id}</echo>
>
> But that's technically unsupported.
>
>
> --- Douglas McCarroll
> <list.ant-user.001@brightworks.com> wrote:
>
>   
>> Hi all,
>>
>> I have a path that I'd like to output to the
>> console.
>>
>> For example:
>>
>>     <path id="my.path.id">
>>         <pathelement location="${a.path}"/>
>>         <pathelement location="${another.path}"/>
>>     </path>
>>
>> If I do this:
>>
>>     <echo message="${my.path.id}" />
>>
>> I get this:
>>
>>     [echo] ${my.path.id}
>>
>> I assume that the problem here is that I'm trying to
>> treat an id as 
>> though it is a property, and it's not.
>>
>> If you wanted to output the paths for debugging,
>> what would you do?
>>
>> TIA!
>>
>> Douglas
>>
>>
>>
>>     
> ---------------------------------------------------------------------
>   
>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>> For additional commands, e-mail:
>> user-help@ant.apache.org
>>
>>
>>     
>
>
>
>  
> ____________________________________________________________________________________
> Get your own web address.  
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
>
> ---------------------------------------------------------------------
> 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