From user-return-46812-apmail-ant-user-archive=ant.apache.org@ant.apache.org Mon Nov 08 13:45:06 2004 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 98162 invoked from network); 8 Nov 2004 13:45:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Nov 2004 13:45:06 -0000 Received: (qmail 29896 invoked by uid 500); 8 Nov 2004 13:44:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 29841 invoked by uid 500); 8 Nov 2004 13:44:56 -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 29822 invoked by uid 99); 8 Nov 2004 13:44:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [81.31.99.7] (HELO smtp2.freeola.net) (81.31.99.7) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 08 Nov 2004 05:44:56 -0800 Received: from jaggersoft.com (81-31-112-23.adsl.entanet.co.uk [81.31.112.23]) by smtp2.freeola.net (8.12.8p1/8.12.8) with ESMTP id iA8DnqnC017062 for ; Mon, 8 Nov 2004 13:49:53 GMT (envelope-from jon@jaggersoft.com) Message-ID: <418F7983.9000301@jaggersoft.com> Date: Mon, 08 Nov 2004 13:49:55 +0000 From: Jon Jagger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031030 X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@ant.apache.org Subject: slight duplication because target name is not available Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I'm using a package based structure, where each package has a target, like so: where run-test is a macrodef task that builds the package, then builds the tests for the package, then runs the tests. I'd like to avoid the obvious duplication. One idea is rather than the current: >ant a.b.c I could use something along the lines of: >ant -Dpackage=a.b.c run-test However I can't see how to do this and retain the explicit package-level dependencies. Any ideas? Thanks Jon Jagger --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org