ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob van Oostrum <rvanoost...@ezgov.com>
Subject regular expression stuff
Date Wed, 28 Mar 2001 14:37:26 GMT
> I have a situation where I run an ant copy instruction on a directory tree that
> (from the context dir of the ant copy instruction) looks something like this:
>
> firstcomponent/webdocs/one/*.jsp
> firstcomponent/webdocs/two/*.jsp
> firstcomponent/webdocs/three/misc/*.jsp
> secondcomponent/webdocs/one/*.jsp
> secondcomponent/webdocs/two/*.jsp
> secondcomponent/webdocs/three/*.jsp
>
> My build directory structure would then contain one directory called webdocs, and I
> would want to copy all contents of all webdocs directories above to this one webdocs
> directory, while preserving the *partial* directory structure:
>
> build/webdocs/one/*.jsp
> build/webdocs/two/*.jsp
> build/webdocs/three/*.jsp
> build/webdocs/three/misc/*.jsp
>
> how would the ant copy instruction for this look like? I've fiddled around with the
> regular expressions stuff and can't seem to get it to work right. I really want to
> do this with one generic instruction, to avoid maintenance on the build.xml file
> every time I add/remove components to a project.
>
> thanks for the help,
>
> Rob


Mime
View raw message