You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Christopher Hull <no...@remarque.org> on 2000/06/17 01:56:23 UTC

javac tool dependencies not working properly.

Please excuse me if this is old news.  I just joined this list
yesterday.

There seems to be a difference between the way javac (the exe) and the
<javac> tool in Ant work.

When passing a -sourcepath to javac, the date based dependencies work,
i.e. javac is able to see if one of the NON-targetted .java files has
changed, and compile it.

com/foo/foo.java
com/bar/bar.java
javac -sourcepath com foo.java
bar.java will recompile too if bar.class is older.  (assuming foo.java
imports bar.java)

Unfortunately this behavior is not true of the javac tool in Ant.  Date
based dependencies are only checked for those files which are overt
targets (those files mentioned in the includes attribute).  I am using
the classic compiler.  Does this work properly under 1.3?

Any ideas?

Thanks
-Chris



Possible virus?

Posted by Russell Gold <rg...@quarterleaf.com>.
I have just received an e-mail with a return address related to this list 
entitled "Fw: Jokes". It contains what I think is a virus attachment. I am 
not familiar with the .shs extension, but I looked at the file with a basic 
text editor and it looks like a script that is manipulating address books. 


RE: javac tool dependencies not working properly.

Posted by Vitaly Stulsky <vi...@yahoo.com>.
Try to find my uncommitted patch in the mail archive. It will help
you to set up sourcepath and also performs dependence tracking.

Vitaly

> -----Original Message-----
> From: Christopher Hull [mailto:nozefngr@remarque.org]
> Sent: Saturday, June 17, 2000 2:56 AM
> To: ant-dev
> Subject: javac tool dependencies not working properly.
> 
> 
> Please excuse me if this is old news.  I just joined this list
> yesterday.
> 
> There seems to be a difference between the way javac (the exe) and the
> <javac> tool in Ant work.
> 
> When passing a -sourcepath to javac, the date based dependencies work,
> i.e. javac is able to see if one of the NON-targetted .java files has
> changed, and compile it.
> 
> com/foo/foo.java
> com/bar/bar.java
> javac -sourcepath com foo.java
> bar.java will recompile too if bar.class is older.  (assuming foo.java
> imports bar.java)
> 
> Unfortunately this behavior is not true of the javac tool in Ant.  Date
> based dependencies are only checked for those files which are overt
> targets (those files mentioned in the includes attribute).  I am using
> the classic compiler.  Does this work properly under 1.3?
> 
> Any ideas?
> 
> Thanks
> -Chris
> 

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com