You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by HANDSCHMANN Robert <HA...@scigames.at> on 2002/01/04 14:04:23 UTC
How to use with
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to use with
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
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" <HA...@scigames.at>
To: "'Ant-User'" <an...@jakarta.apache.org>
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: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>