Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 27085 invoked from network); 3 Jan 2005 14:00:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jan 2005 14:00:54 -0000 Received: (qmail 79444 invoked by uid 500); 3 Jan 2005 14:00:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 79257 invoked by uid 500); 3 Jan 2005 14:00:07 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 79103 invoked by uid 99); 3 Jan 2005 14:00:05 -0000 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=NO_REAL_NAME,RCVD_BY_IP,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-ant-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 03 Jan 2005 05:59:56 -0800 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ClSkL-0004DO-00 for ; Mon, 03 Jan 2005 14:59:45 +0100 Received: from 141.149.169.6 ([141.149.169.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Jan 2005 14:59:45 +0100 Received: from galenboyerdev by 141.149.169.6 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Jan 2005 14:59:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@ant.apache.org From: galenboyerdev@hotpop.com Subject: Re: Weird behaviour from import in Ant 1.6.2 Date: 03 Jan 2005 08:59:37 -0500 Lines: 103 Message-ID: References: <009b01c4eec9$4ccd59e0$0d02a8c0@athlon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 141.149.169.6 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N "Rhino" writes: > I am getting some weird behaviour from Ant 1.6.2 in Eclipse 3.0.1. > > A while ago, I created a couple of simple imported tasks to do some basic > work for me. My plan was to import these tasks into each Ant script that I > write. Initially, this worked but I've been away from Ant for a few months > and now I find that it doesn't work any more. > > Basically, the problem is that Ant isn't seeing my imported scripts any > more. Whenever I edit my build.xml, I get this message: Cannot find > ${ant.home}\imports\datetime.xml imported from > E:\eclipse\3.0.1\eclipse\workspace\SDAC\xml\build.xml. (A comparable message > occurs for the other imported script, sounds.xml, so I've just commented it > out and assume it is having the same problem that 'datetime.xml' is having.) > Here is the build.xml: > > > > basedir="E:\eclipse\3.0.1\eclipse\workspace"> > > Create the SDAC jars. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The datetime.xml file contains the following: > > > > This fragment will be imported into every Ant build > script that needs to display the time and date that the build began. > > > > > > > > > > > > > When I run my build.xml, it confirms that ant.home is > E\:\\eclipse\\3.0.1\\eclipse\\plugins\\org.apache.ant_1.6.2. I am absolutely > certain that ant.home contains an 'imports' directory and that 'imports' > contains a file called 'datetime.xml'. However, the 'datetime.xml' file is > not visible to the Ant Editor and the task within 'datetime.xml' is not > executed when I run the build. > > I also have a copy of Ant 1.6.1 installed outside of Eclipse and it also has > an 'imports' directory beneath it and a 'datetime.xml' within the 'imports' > directory; when I run a build.xml from the command line outside of Eclipse, > it also fails to run the task within 'datetime.xml', presumably because Ant > doesn't see it. > > What am I doing wrong?? I don't know. It works for me on my box. Try hardcoding the fully qualified path/filename for your datetime.xml file. Maybe something with permissions is getting you? -- Galen --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org