Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FD16612F for ; Wed, 27 Jul 2011 12:21:43 +0000 (UTC) Received: (qmail 98986 invoked by uid 500); 27 Jul 2011 12:21:42 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 98659 invoked by uid 500); 27 Jul 2011 12:21:38 -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 98642 invoked by uid 99); 27 Jul 2011 12:21:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 12:21:35 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.218.45] (HELO mail-yi0-f45.google.com) (209.85.218.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 12:21:30 +0000 Received: by yia25 with SMTP id 25so1180075yia.4 for ; Wed, 27 Jul 2011 05:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=steelezone.net; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=5nkaLhnWWQuJoIi30d61eSomSTJJGP6Tbbp0h9AW5HU=; b=04Px4mybqrXuGsZRzDB9Z6A4FEMd4zDs+5QqcTv8XN/u+dpJkNcoyxk3Z8YwdmLMSg jkPv6APQrmMVUl041nD8F8ecIax5jW+0N2dU2OsVH4hORMypP09URyKnjeLxV49z9IoP mDk2JEFhglvsksUApcl5dS8TJEf39t5a655lg= MIME-Version: 1.0 Received: by 10.150.48.28 with SMTP id v28mr1032ybv.38.1311769268946; Wed, 27 Jul 2011 05:21:08 -0700 (PDT) Received: by 10.150.229.12 with HTTP; Wed, 27 Jul 2011 05:21:08 -0700 (PDT) Date: Wed, 27 Jul 2011 08:21:08 -0400 Message-ID: Subject: Bug 50894: Invoking multiple targets that share the same dependency to augment a path causes NullPointerException From: "Steele, Richard" To: user@ant.apache.org Content-Type: multipart/alternative; boundary=000e0cd7055e4d871804a90c15a5 --000e0cd7055e4d871804a90c15a5 Content-Type: text/plain; charset=ISO-8859-1 I keep bumping into the issue I documented in bug 50894but there's no feedback about it. Here's the description: Using this build file: I can invoke each target, foo and bar, independently; for example ant foo Buildfile: C:\dev\projects\ant-playground\augment-with-multiple-target\build.xml aug: foo: [echo] C:\ BUILD SUCCESSFUL ant bar Buildfile: C:\dev\projects\ant-playground\augment-with-multiple-target\build.xml aug: bar: [echo] C:\ BUILD SUCCESSFUL However, invoking both on the same command line causes an error: ant foo bar Buildfile: C:\dev\projects\ant-playground\augment-with-multiple-target\build.xml aug: foo: [echo] C:\ aug: BUILD FAILED C:\dev\projects\ant-playground\augment-with-multiple-targets\build.xml:14: java.lang.NullPointerException at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:376) at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:344) at org.apache.tools.ant.Task.maybeConfigure(Task.java:202) at org.apache.tools.ant.Task.perform(Task.java:347) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) If foo and bar independently use augment, even for the same path (that is, they don't use depends on a shared target) like this: the build works. Any help getting this resolved would be much appreciated. I've tried debugging it myself but I get lost somewhere in the deep, dark underbelly of Ant. Rich --000e0cd7055e4d871804a90c15a5--