Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 52345 invoked from network); 26 Jun 2007 09:49:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2007 09:49:21 -0000 Received: (qmail 75167 invoked by uid 500); 26 Jun 2007 09:49:23 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 74205 invoked by uid 500); 26 Jun 2007 09:49:21 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 74191 invoked by uid 99); 26 Jun 2007 09:49:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2007 02:49:21 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of akshat.kumar.yadav@citigroup.com designates 192.193.71.4 as permitted sender) Received: from [192.193.71.4] (HELO mail.citigroup.com) (192.193.71.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2007 02:49:16 -0700 Received: from imbarc-sg02.apac.nsroot.net (imbarc-sg02.ap.ssmb.com [163.37.24.22]) by imbaspam-sg04.apacdmz.dmzroot.net (8.13.8/8.13.8/SSMB_EXT/ev: 16778 $) with ESMTP id l5Q9msui009788 for ; Tue, 26 Jun 2007 09:48:54 GMT Received: from mailhub-sg01.apac.nsroot.net (mailhub-sg01.apac.nsroot.net [163.36.1.97]) by imbarc-sg02.apac.nsroot.net (8.13.7/8.13.7/SSMB_QQQ_IN/1.1) with ESMTP id l5Q9monr024511 for ; Tue, 26 Jun 2007 09:48:50 GMT Received: from exsgsm02.apac.nsroot.net (exsgsm02.apac.nsroot.net [163.36.1.116]) by mailhub-sg01.apac.nsroot.net (8.13.7/8.13.7/CG_HUB) with ESMTP id l5Q9mmil024702 for ; Tue, 26 Jun 2007 09:48:49 GMT Received: from exsgmb02.apac.nsroot.net ([163.36.1.25]) by exsgsm02.apac.nsroot.net with Microsoft SMTPSVC(5.0.2195.6713); Tue, 26 Jun 2007 17:48:26 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: Javac task query Date: Tue, 26 Jun 2007 17:48:10 +0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Javac task query Thread-Index: Ace31nnZVnhxALuCQpKcTKMJOrwamwAADAeQ References: <1182849436.5159.31.camel@localhost> <1182850884.5159.35.camel@localhost> From: "Yadav, Akshat Kumar " To: "Ant Users List" X-OriginalArrivalTime: 26 Jun 2007 09:48:26.0210 (UTC) FILETIME=[24881C20:01C7B7D7] X-Scanned-By: MIMEDefang 2.52 on 192.193.71.4 X-Virus-Checked: Checked by ClamAV on apache.org =20 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. I would appreciate, If you could try this in your environment. I had tried this with ANT 1.6.5/1.7 and java 1.4/1.5. P.S: Other member's can also suggest me something. Thanks, -----Original Message----- From: Prashant Reddy [mailto:prashant@pramati.com]=20 Sent: Tuesday, June 26, 2007 5:41 PM To: Ant Users List Subject: 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 : > includes=3D"**/*.*"/> > HTH On Tue, 2007-06-26 at 17:24 +0800, Yadav, Akshat Kumar wrote: > Thanks Prashant for reply.=20 >=20 > I had gone through this link earlier, my source dir structure mirrors=20 > package dir structure. Even I tried to put the source and dest dir as=20 > single dir. >=20 > name=3D"src" value=3D"C:\Documents and Settings\ay03416\My=20 > Documents\RanD\ant\src"/> and Settings\ay03416\My Documents\RanD\ant\dest" /> name=3D"lib" value=3D"C:\Documents and Settings\ay03416\My=20 > Documents\RanD\ant\lib" /> >=20 > > deprecation=3D"no" debug=3D"on" listfiles=3D"yes"> > > includes=3D"**/*.jar **/*.zip"/> > includes=3D"**/*.*"/> > > > > >=20 > Any suggestion's welcome... Also, I had gone to following links, but=20 > no luck for me :( >=20 > http://mail-archives.apache.org/mod_mbox/ant-user/200111.mbox/%3cKCEIJ > FM KLJJOJIBAAPJMAEPPCOAA.ttm@online.no%3e > http://article.gmane.org/gmane.comp.jakarta.ant.user/42524 > http://marc.info/?l=3Dant-user&m=3D97303040120654&w=3D2 > http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg01615.html > http://mail-archives.apache.org/mod_mbox/ant-user/200009.mbox/%3cNDBBI > MH CHMPELMBMMFIMEEDKDPAA.conor@ebinteractive.com.au%3e > https://issues.apache.org/struts/browse/STR-2403 >=20 > Thanks, >=20 > -----Original Message----- > From: Prashant Reddy [mailto:prashant@pramati.com] > Sent: Tuesday, June 26, 2007 5:17 PM > To: Ant Users List > Subject: Re: Javac task query >=20 > Please see : > http://ant.apache.org/faq.html#always-recompiles >=20 > HTH >=20 > On Tue, 2007-06-26 at 16:15 +0800, Yadav, Akshat Kumar wrote: > > Hi All, > >=20 > > Ant manual says "The source and destination directory will be=20 > > recursively scanned for Java source files to compile. Only Java=20 > > files that have no corresponding .class file or where the class file > > is older than the .java file will be compiled." > >=20 > > Reference: http://ant.apache.org/manual/CoreTasks/javac.html > >=20 > > But, when I compile my java files through using ANT javav task, all=20 > > files gets compiled every time. Rather, I want it to compile only=20 > > those files that have no corresponding .class file or where the=20 > > class file is older than the .java file. > >=20 > > Code: > >=20 > > > > > deprecation=3D"no" debug=3D"on" listfiles=3D"yes"> > > > > > includes=3D"**/*.jar **/*.zip"/> > > > includes=3D"**/*.*"/> > > > > > > > >=20 > > Let me know what I am missing... > >=20 > > Thanks, > >=20 > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 > > additional >=20 > > commands, e-mail: user-help@ant.apache.org --=20 -Prashant Don't upload, just share : www.dekoh.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org