i am using jdk1.3.1_02

-----Original Message-----
From: Daniel Barclay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 1:27 PM
To: Ant Users List
Subject: RE: Javac Task(Urgent Help)




> From: subhendukumar mohanty [mailto:[EMAIL PROTECTED]]
> ...
> But I have tried with failonerror="no" in javac task. It 
> seems that after one of the compilation error for one class , 
> it does not compile other classes which are not depend upon 
> the failed class.

Isn't it the compiler, not Ant, that's deciding not to compile (or 
not to write out the .class files for) the other classes?

("failonerror" controls whether Ant continues with other tasks
or not if the compiler reports an error.  It doesn't control
whether the compiler writes out .class files for all the classes
that did compile or writes no .class files unless every class
compiled successfully.)

Which compiler are you using?  




> Actually in my project there are 700 classes. After 
> compilation of classes , the next task is to make different 
> jar files for certain group of packages. At the time of build 
> one of the class failed compilation error. After build I 
> found the jar files does not contain anything. Then I saw the 
> stage directory for number of classes, I found that it did 
> not compile other classes which are not dependant on.

You might want to compile your files in groups. 

Under some conditions, you might also want to split your source 
directory hierarchy into several hierarchies to control which
source files the compiler can find even when Ant hasn't directly
requested their compilation.


Daniel

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


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

Reply via email to