ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.A.Dunphy" <madun...@bigfoot.com>
Subject RE: Can ant do something for each file in a fileset
Date Wed, 02 May 2001 12:38:21 GMT
Thanks tim,

I've got it working but I've a couple of questions. I wasn't sure what
mapper to use? I'd like to use the regexp but I just can get the syntax I
need and would appreciate help. Below is am example of the source and target
filenames:
	dir1/x.jsp -> _dir1/_x.class
	dir1/dir2/dir3/y.jsp -> _dir1/_dir2/_dir3/_y.class

ie I dont know the number of directory levels. Can anybody help with the
regexp syntax?

Thanks

Mick

-----Original Message-----
From: Tim Vernum [mailto:Tim.Vernum@macquarie.com.au]
Sent: 02 May 2001 06:05
To: 'ANT-user'
Subject: RE: Can ant do something for each file in a fileset


From: M.A.Dunphy [mailto:madunphy@bigfoot.com]


> Unfortunately this compiler appears not to understand the concept of a
webapp
> but rather it compiles a single file at a time. I cant see it working but
I'll ask..
> Would it be possible to get a java command to be invoked for each .jsp
file derived
> from a fileset or something similar. 

You could look at the apply task.
That should be usable.

Otherwise, I posted a foreach task to ant-dev last week, and I can provide
you a copy if you want.
 

Mime
View raw message