Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 81661 invoked from network); 28 Jun 2006 15:04:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2006 15:04:39 -0000 Received: (qmail 80310 invoked by uid 500); 28 Jun 2006 15:04:38 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 80123 invoked by uid 500); 28 Jun 2006 15:04:38 -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 80111 invoked by uid 99); 28 Jun 2006 15:04:37 -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 08:04:37 -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 08:04:37 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FvbZv-00059M-D1 for dev@ant.apache.org; Wed, 28 Jun 2006 17:03:43 +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 17:03:43 +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 17:03:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@ant.apache.org From: Jhair Tocancipa Triana Subject: Re: ResourceUtils.selectOutOfDateSources: ant rebuilds class file again? Date: Wed, 28 Jun 2006 17:03:00 +0200 Organization: Linux box at work Lines: 44 Message-ID: References: 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:iD4NFFnXjiuYP4BJuLp5PSc99V0= Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jeffrey E Care writes: > AFAIK you would normally use SourceFileScanner to find source files > that are out of date relative to their destination files. SourceFileScanner is called indeed. Here is the backtrace after the breakpoint is hit: main[1] where [1] org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources (ResourceUtils.java:153) [2] org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources (ResourceUtils.java:123) [3] org.apache.tools.ant.util.SourceFileScanner.restrict (SourceFileScanner.java:100) [4] org.apache.tools.ant.util.SourceFileScanner.restrictAsFiles (SourceFileScanner.java:146) [5] org.apache.tools.ant.util.SourceFileScanner.restrictAsFiles (SourceFileScanner.java:124) [6] org.apache.tools.ant.taskdefs.Javac.scanDir (Javac.java:841) [7] org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:815) [8] org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:275) [9] sun.reflect.NativeMethodAccessorImpl.invoke0 (native method) [10] sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) [11] sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) [12] java.lang.reflect.Method.invoke (Method.java:585) [13] org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:104) [14] org.apache.tools.ant.Task.perform (Task.java:375) [15] org.apache.tools.ant.Target.execute (Target.java:356) [16] org.apache.tools.ant.Target.performTasks (Target.java:384) [17] org.apache.tools.ant.Project.executeSortedTargets (Project.java:1,268) [18] org.apache.tools.ant.Project.executeTarget (Project.java:1,237) [19] org.apache.tools.ant.helper.DefaultExecutor.executeTargets (DefaultExecutor.java:40) [20] org.apache.tools.ant.Project.executeTargets (Project.java:1,120) [21] org.apache.tools.ant.Main.runBuild (Main.java:686) [22] org.apache.tools.ant.Main.startAnt (Main.java:196) [23] org.apache.tools.ant.launch.Launcher.run (Launcher.java:279) [24] org.apache.tools.ant.launch.Launcher.main (Launcher.java:100) I can reproduce my problem also with a stable version of ant (1.6.4). So I suspect there is something terrible wrong in my build.xml file or I missed some important point in the documentation. Any other ideas what could be wrong? Thanks, -- --Jhair --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org