[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: regular expression stuff]



On Wed, 28 Mar 2001 16:35:55 +0200
Rob van Oostrum <rvanoostrum@ezgov.com> wrote:

> oops ... wrong list .. apologies ...
> 
> Rob van Oostrum wrote:
> 
> > 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.

Even if this is not the right mailing list to ask such questions I would
say that this is not possible with ANT. Well, we only use ANT 1.2 so I
don't know what changes to 1.3. :-/

Lars
--
______________________________________________________________________
Lars Martin                                    mailto:lars@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com