You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Elijah Baley <e_...@hotmail.com> on 2005/12/29 12:13:16 UTC
UPTODATE file-by-file on 2 directories ?
Hi - I suspect I ask something rather simple, but I am looking to use the
UPTODATE task to check files in 2 directories as follows:
<uptodate srcdir="X" targetdir="Y" ...>
check that file "a/b/c/foo.x" is uptodate when compared with file
"a/b/c/foo.y" for EACH file/sub-folder - in other words, assume that source
and target folders have same structure (sub-folders, files, etc.) - except
maybe for the file(s) suffix(es).
Can anyone suggest how to configure the UPTODATE task (which mapper, what
expression to use) to achieve this goal ?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: UPTODATE file-by-file on 2 directories ?
Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 29 Dec 2005, Elijah Baley <e_...@hotmail.com> wrote:
> check that file "a/b/c/foo.x" is uptodate when compared with
> file "a/b/c/foo.y" for EACH file/sub-folder - in other words,
> assume that source and target folders have same structure
> (sub-folders, files, etc.) - except maybe for the file(s)
> suffix(es).
maybe or maybe not?
<mapper type="glob" from="*.x" to="*.y"> would do, if they were always
different in that way. Otherwise a combination of different glob
mappers within a compositemapper may work.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org