I do as you have attempted and put a directory prefix on the 'to' attribute
and it works for me. (although at the moment I'm running off of a CVS build
of Ant).
Here's what I do:
<mapper type="glob"
from="*.java"
to="${build.classes.dir}/*.class" />
What version of Ant are you using? Also, what does 'ant -debug' report when
it hits the mapper?
----- Original Message -----
From: "HANDSCHMANN Robert" <[EMAIL PROTECTED]>
To: "'Ant-User'" <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 8:04 AM
Subject: How to use <uptodate> with <mapper type="glob"..>
> I have a simple problem. I want to define a property that gets set
> when some files are outdated compared to corresponding files in
> another directory. I use the <update> task with a mapper:
>
> <uptodate property="sqlj.files.uptodate">
> <srcfiles dir="${source.directory}" includes="**/*.sqlj"/>
> <mapper type="glob" from="*.sqlj" to="*.java"/>
> </uptodate>
>
> Unfortunately this doesn't work because I don't know how to define the
> target directory.
> I tried also with
> <mapper type="glob" from="*.sqlj"
> to="${generated.source.directory}/*.java"/>
> which doesn't work, either.
>
> Any ideas?
>
> Thanks,
> Robert
>
> P.S: I need that as workaround for the bug in the <apply> task which
> doesn't correctly handle the 'skipemptyfilesets' attribute.
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>