Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 65756 invoked from network); 24 Oct 2000 17:14:32 -0000 Received: from unknown (HELO infoserver.develop.com) (63.111.243.12) by locus.apache.org with SMTP; 24 Oct 2000 17:14:32 -0000 Received: from TURING ([63.111.243.224]) by infoserver.develop.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id VQK6CHT5; Tue, 24 Oct 2000 10:19:23 -0700 From: "Stuart Halloway" To: Subject: Property propagation? Date: Tue, 24 Oct 2000 10:13:35 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N According to the docs, properties are propagated by the "ant" task, and override any "property" task settings. I am not finding this to be the case, e.g. The idea of this project is that "all" depends on "clean" followed by "compile," BUT "compile" does not depend on "clean." To make this work, I execute "clean" and "compile" as "ant" tasks under the "all" target. Properties passed on the command line correctly propagate to the ant sub-tasks, but then the "property" task is able to change them. So, with the command line ant -buildfile=test.xml -Dmyprop=foo all the "all" task correctly uses the value "foo" but the "clean" task uses the value "other." As a workaround, I can pass the properties explicitly, like this: Is this an ant bug, a stu bug, or a doc error? :-) Stuart Halloway DevelopMentor http://staff.develop.com/halloway