ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, EJ" <>
Subject RE: Passing a file list to ANT javac task
Date Fri, 21 Mar 2003 18:00:49 GMT
The time it takes to find all the java files by using the examples can't be
that long.  We have something like 2800 files that get compiled and it takes
< 1 minute (we have nice hardware here).  If a second "compile" is run and
nothing needed it takes < 4 seconds.

Could you paste in your target and a maybe an explanation as to why a
"include name=" won't work?

-----Original Message-----
From: Tim Gordon []
Sent: Friday, March 21, 2003 12:51 PM
To: Ant Users List
Subject: Passing a file list to ANT javac task


Is there a way to pass a list of files to ANT's 'javac' task? I'm after
something that's functionally similar to the command line "javac @filelist".

The 'includesfile' attribute of the 'javac' task is not what I'm after. I'm
intending to pass in a LOT of files, and my investigations using the
'includesfile' attribute indicates that the FileSet that's used by 'javac'
will work it's way through every file path under it's root directory and try
to match it against any of the files in the 'includesfile' attribute. If the
number of files specified in 'includesfile' is large and the number of files
under the root is large then this takes a long time.

Obviously, I'm doing something wrong. Is there a way to pass a specific set
of files the the 'javac' task without copying them all to a new interim
source root first?


Tim Gordon

Allustra Limited
1 Royal Exchange Avenue
Tel 020 7464 4190
Tel 020 7464 4194

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message