Antophiles,

I would like to use explicit lists of java files for compilation. With Ant
1.1, I did this via the include directive
of javac:

<javac ...>
  <include name="${app.files}"/>  // app.files being read from a <property
file=app.file> directive
</javac>

This no longer works with Ant 1.2 (Ant version 1.2 compiled on October 24
2000) - I get no errors, but compilation completes successfully with no files
being compiled.

I also tried using the <includesfile> tag, but I get:
/vobs/GV3.0/G1.xml:564: Class org.apache.tools.ant.taskdefs.Javac doesn't
support the nested "includesfile" element

Has nobody requested an explicit include list feature? In our environment, I
find that the */java convention is much too inclusive, and listing files to
exclude is fine for local development but not specific enough for a medium- to
large-sized project. I also want control over exactly what gets jarred into
deliverables.

Can I use explicit lists with Ant1.2 or should I look into sub-classing to
implement this?

Also, I noticed that with Ant 1.1, building with explicit lists took much
longer (around twice as long) than building with
a *.java type list. I assume that this could be avoided by using a specific
tag <includeexplicit> which would skip the pattern matching processing
performed for includes/excludes and pass the list directly to javac.

Any thoughts?

Jim.

--
James Stallard
GlobalOne 13775 McLearen Rd
Phone: (703) 471-2553

begin:vcard 
n:James Stallard;Jim Stallard
tel;work:(703) 471-2553
x-mozilla-html:FALSE
org:Cornell Technical Services;Systems Integratoin
adr:;;13775 McClearen Rd.;Herndon ;Virginia;20170;U.S.A
version:2.1
email;internet:[EMAIL PROTECTED]
title:Systems Development/Configuration Management 
x-mozilla-cpt:;-29616
fn:Jim Stallard James Stallard
end:vcard

Reply via email to