ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HANDSCHMANN Robert <HANDSCHM...@scigames.at>
Subject How to use <uptodate> with <mapper type="glob"..>
Date Fri, 04 Jan 2002 13:04:23 GMT
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message