> -----Original Message-----
> From: Ivan Ivanov [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 21, 2005 9:09 PM
> To: Ant Users List
> Subject: Re: Question on how to to debug mapper issues
> 
> Hello,
> 
> in most cases I have found that running ant in verbose
> or in debug mode by supplying -v or -d options
> corresoindingly helps find what is going wrong.

Quite helpful, thanks.  

> 2) I found that using relative locations in "to"
> attribute of <mapper> to be tricky. I would rewrite it
> a little bit:
> 
> <property name="project.classes"
> location="build/classes"/>
> <uptodate property="is.uptodate">
>   <srcfile dir="src" includes="**/*.java"/>
>   <mapper type="glob" from="*.java"
>      to="${project.classes}/*.class"/>
> </uptodate>

Sure enough, you were correct.  It seems that the "to" attribute does
not handle literal relative paths very well.  If I store the relative
path as the location attribute of a property, no problem doing anything
at all.

What's up with this?  Does anybody else find that buggy, or is it just
me?

Thanks for the assistance, this problem was really irritating.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to