ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.A.Dunphy" <>
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
	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?



-----Original Message-----
From: Tim Vernum []
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 []

> Unfortunately this compiler appears not to understand the concept of a
> 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.

View raw message