ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <>
Subject Re: Order of attributes versus elements
Date Sun, 03 Mar 2002 06:52:52 GMT
Peter Donald wrote:

> They are included by <src/> element?

No. They are not included by Ant at all. Only the compiler includes them

The compile list is generated by the application of include and exclude 
patterns over the source paths (the srcDir and <src> elements). The 
following <exclude> elements
mean these classes are not in the compile list. The classes are compiled 
because other classes in the compile list depend on them, which causes 
the compiler to search the source path. It is at this point that the 
order of elements in the source path becomes important. The fact that 
two copies of the Java file exist in the available source paths means 
you need to rely on the order.

It is this reliance on ordering that is a hack, but you don't seem to agree.

>>In fact if they
>>were in the compile list it wouldn't work because javac would be given
>>two Java files for the same class. Don't you think it is odd that even
>>though the build just went to some trouble to filter these files it
>>specifically excludes them from compilation? 
> no seems fine to me.

Cool. Have you tried building it with myrmidon?


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

View raw message