Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 94984 invoked from network); 10 Apr 2006 02:30:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Apr 2006 02:30:29 -0000 Received: (qmail 74306 invoked by uid 500); 10 Apr 2006 02:30:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 74253 invoked by uid 500); 10 Apr 2006 02:30:23 -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 74242 invoked by uid 99); 10 Apr 2006 02:30:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Apr 2006 19:30:23 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.217.22.128] (HELO file1.syd.nuix.com.au) (203.217.22.128) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Apr 2006 19:30:22 -0700 Received: from [192.168.222.102] (demo1.syd.nuix.com.au [192.168.222.102]) by file1.syd.nuix.com.au (Postfix) with ESMTP id 474C6B735B for ; Mon, 10 Apr 2006 12:29:56 +1000 (EST) Message-ID: <4439C3B5.1010503@nuix.com.au> Date: Mon, 10 Apr 2006 12:32:21 +1000 From: Daniel Noll Organization: NUIX Pty Limited User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: user@ant.apache.org Subject: over multiple directories? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, folks. I have a directory under which there are multiple nested directories, sometimes containing a makefile. At present, we handle these by calling on each one in turn. This uses around three lines of antfile for every makefile, and the number of directories is steadily increasing. The current system also has a flaw that a developer may add a makefile to the compile section while forgetting to add it to the clean section. Today I discovered the task, and thought it might be the way out of this predicament. However, that task becomes useless very quickly. The problem is that make needs to be run in the same directory as the makefile. The task allows me to specify a directory to run the command, but as far as I can tell, I can't specify to run it in the same directory as the file. Obviously I can work around this by having some kind of master makefile which calls all the makefiles under it, but then I still have to manually add something to that file whenever I add new source. Another option might be using ant-contrib's task, but I have found some serious issues when trying to use that task with C++ code. So, how do other people work around this limitation? Daniel -- Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699 Web: http://www.nuix.com.au/ Fax: +61 2 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org