Peter Donald | 2 Jun 2002 16:29
Picon
Favicon

Re: How do I debug what's in a path?

Hi,

This is what you want

<path id="test.classpath"/>
<property name="X" refid="test.classpath"/>
<echo message="test.classpath=${test.classpath}"/>

On Mon, 3 Jun 2002 00:12, Shorn Tolley wrote:
> Hi,
>
> I'm trying to track down a build problem I'm having when building Ant from
> within NetBeans (I actually have it working via two different workarounds
> now, but I want to solve the problem).
> The problem appears to be NetBeans, not Ant or the Ant build file.
>
> I have a minimal project that works on the command line and doesn't work in
> NetBeans that I'm going to use to show the NB community what's going wrong.
>
> What I was wondering is: is there any way I can debug a path element?
> I want to print out to the console eveything that's in a particular
> classpath.
> (This will make it easier to show explicitly whats going wrong)
>
> The path element I want to debug (just like in the Ant build file) is
> declared:
> <path id="test.classpath">
> </path>
>
> What I'd like to do is something like:
> <echopath pathref="test.classpath"/>
>
> And that would print out all the elements of the classpath.
> Does anyone know of anyway I can do something like this with Ant 1.4.1?
>
> Thanks,
> Shorn.

--

-- 
Cheers,

Peter Donald
--------------------------------------------------
"An intellectual is someone who has been educated 
beyond their intelligence."
-------------------------------------------------- 

Gmane