--- Joseph Shelby <[EMAIL PROTECTED]> wrote:
> Stefan Bodewig wrote:
> > (1) includes="**/*.java" is not necessary in <javac>.  Ant is even
> > smarter than you think, <javac> already does exactly this. 8-)
> 
> actually, it doesn't, or it didn't anyways.

It always has for me (all the way back to release 1.2).

> I found that when I had edited a file with joe or emacs, 
> leaving behind an archive of the pre-edit file "x.java~",
> ant-javac would actually compile that file, and it would compile it
> AFTER it compiled the matching .java file, so that my older version
> of my code was the final .class file generated (the same .class file
> would result because the classes had the same name).

I've never seen it do anything like that.

I can have a <javac> target as simple as (as of Ant1.2 - before that,
'destdir' was required):
  <target name="compile">
    <javac srcdir="src"/>
  </target>
and it'll do the completely right thing, even if there are *.java~ files
around. I've just verified that's true for 1.2, 1.3, 1.4, and 1.4.1, and
if I add a 'destdir' attr, for 1.1 as well).

Diane

=====
([EMAIL PROTECTED])



__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to