Re: Javac task query

2007-06-27 Thread Wayne Cannon
Keep in mind that a class file is generated for every Java class, NOT for every source file. Source files can contain multiple classes (although I generally don't like the practice, it's very common for listener classes in GUI code). If B.java defined classes B and C, the compiler would gener

RE: Javac task query

2007-06-27 Thread Yadav, Akshat Kumar
Thanks Steve, I will look into this. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 5:09 PM To: Ant Users List Subject: Re: Javac task query Yadav, Akshat Kumar wrote: > Thanks Peter for reply. > > I think ANT developer sho

Re: Javac task query

2007-06-27 Thread Steve Loughran
ay we know that what we ship is what we can build repeatedly, not whatever was on some developers hdd at the time -steve -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 3:46 PM To: Ant Users List Subject: Re: Javac task query On 6/27/07

Re: Javac task query

2007-06-27 Thread Yadav, Akshat Kumar
Thanks Peter for reply. I think ANT developer should think on extending there "javac" task to provide such feature. Thanks, -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 3:46 PM To: Ant Users List Subject: Re: Javac task quer

Re: Javac task query

2007-06-27 Thread Peter Reilly
nal Message- From: Prashant Reddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 1:57 PM To: Ant Users List Subject: Re: Javac task query No 'javac' task by itself will not delete class file whose source java file has been deleted, and rightly so. I do not think you would really

RE: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Thanks Prashant for reply. I am talking for the situation where a.java, b.java and c.java are independent java code files. Thanks, -Original Message- From: Prashant Reddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 1:57 PM To: Ant Users List Subject: Re: Javac task query

Re: Javac task query

2007-06-26 Thread Prashant Reddy
class) > > But I don't want c.class should not be presend in jar. It there any > option or method to counter with such situation. > > Any help appreciated. If my query is not clear, then let me know... > > Thanks, > > -Original Message- > From: Steve

Re: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
et me know... Thanks, -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 7:04 PM To: Ant Users List Subject: Re: Javac task query Yadav, Akshat Kumar wrote: > > Hi Prashant, > > I had executed ANT in verbose and debug mode and

Re: Javac task query

2007-06-26 Thread Steve Loughran
Yadav, Akshat Kumar wrote: Hi Prashant, I had executed ANT in verbose and debug mode and it shows [javac] HelloWorlApp.java added as HelloWorlApp.class doesn't exist. Whereas the class file exist in dest dir. I tried adding/deleting dest dir in classpath, but no luck in both the situation.

Re: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
ubject: RE: Javac task query Humm.. May be you could try running ANT in verbose mode, see why ANT thinks it should compile .java files that are not modified. Also, I think the destination dir the classes are directed to is automatically added to classpath by ANT. So you may not need this : &

RE: Javac task query

2007-06-26 Thread Prashant Reddy
cNDBBIMH > [EMAIL PROTECTED] > https://issues.apache.org/struts/browse/STR-2403 > > Thanks, > > -Original Message- > From: Prashant Reddy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 26, 2007 5:17 PM > To: Ant Users List > Subject: Re: Javac task query > &g

RE: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
-2403 Thanks, -Original Message- From: Prashant Reddy [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 5:17 PM To: Ant Users List Subject: Re: Javac task query Please see : http://ant.apache.org/faq.html#always-recompiles HTH On Tue, 2007-06-26 at 16:15 +0800, Yadav, Akshat Kuma

Re: Javac task query

2007-06-26 Thread Prashant Reddy
Please see : http://ant.apache.org/faq.html#always-recompiles HTH On Tue, 2007-06-26 at 16:15 +0800, Yadav, Akshat Kumar wrote: > Hi All, > > Ant manual says "The source and destination directory will be > recursively scanned for Java source files to compile. Only Java files > that have no corre

Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Hi All, Ant manual says "The source and destination directory will be recursively scanned for Java source files to compile. Only Java files that have no corresponding .class file or where the class file is older than the .java file will be compiled." Reference: http://ant.apache.org/manual/CoreT