Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 75887 invoked from network); 28 Jun 2006 14:50:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2006 14:50:32 -0000 Received: (qmail 17704 invoked by uid 500); 28 Jun 2006 14:50:31 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 17658 invoked by uid 500); 28 Jun 2006 14:50:31 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 17647 invoked by uid 99); 28 Jun 2006 14:50:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 07:50:31 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-ant-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 07:50:30 -0700 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FvbMj-0002Ck-Ic for dev@ant.apache.org; Wed, 28 Jun 2006 16:50:05 +0200 Received: from 85.115.3.118 ([85.115.3.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jun 2006 16:50:05 +0200 Received: from jhair_tocancipa by 85.115.3.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jun 2006 16:50:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@ant.apache.org From: Jhair Tocancipa Triana Subject: ResourceUtils.selectOutOfDateSources: ant rebuilds class file again? Date: Wed, 28 Jun 2006 16:38:17 +0200 Organization: Linux box at work Lines: 52 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 85.115.3.118 User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:5lHsBaL75+1mDQa+s+JD94t5kkw= Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [My apologies if this question is more appropiate for the users list. I tested the following with sources from the SVN repository]. Please consider the test case below: http://people.freenet.de/jtocancipa/ant_test_case.tgz $ tar tvzf ant_test_case.tgz -rw-r--r-- user/users 257 2006-06-28 15:25:01 build.xml drwxr-xr-x user/users 0 2006-06-28 15:40:48 src/com/ drwxr-xr-x user/users 0 2006-06-28 15:40:56 src/com/icon/ drwxr-xr-x user/users 0 2006-06-28 15:37:07 src/com/icon/common/ -rw-r--r-- user/users 149 2006-06-28 15:35:42 src/com/icon/common/TestAnt.java When I run ant over this dummy example more than once, the classes/com/icon/common/TestAnt.class is generated everytime again -- it shouldn't if the TestAnt.java file hasn't been modified. ant -verbose says the following: compile: [javac] TestAnt.java added as TestAnt.class doesn't exist. The file classes/com/icon/common/TestAnt.class exists though. I don't know much about ant internals, but I am interested to learn. So I tried to debug this to see why this was happening. I set a breakpoint in org.apache.tools.ant.util.ResourceUtils:174. main[1] print granularity granularity = 1000 main[1] print sr sr = "TestAnt.java" main[1] print r r = "/classes/TestAnt.class" Since /classes/TestAnt.class does not exist, the TestAnt.java file is compiled again. On the other hand the file /classes/com/icon/common/Test.class *does* exist. Why does ant look for the .class file in the "wrong" directory (i.e. classes instead classes/com/icon/common)? Thanks in advance for your help, -- --Jhair --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org