From user-return-52162-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Sep 07 02:25:01 2005 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 25003 invoked from network); 7 Sep 2005 02:24:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2005 02:24:59 -0000 Received: (qmail 75573 invoked by uid 500); 7 Sep 2005 02:24:55 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75536 invoked by uid 500); 7 Sep 2005 02:24:54 -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 75523 invoked by uid 99); 7 Sep 2005 02:24:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 19:24:54 -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 [207.149.72.5] (HELO tippecanoe.cobaltgroup.com) (207.149.72.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 19:25:07 -0700 Received: from californium.cobaltgroup.com (fw-sea-bus-outside-nat.cobaltgroup.com [207.149.72.12]) by tippecanoe.cobaltgroup.com (Switch-2.2.8/Switch-2.2.8) with ESMTP id j872Opb22472 for ; Tue, 6 Sep 2005 19:24:51 -0700 From: Stephen Nesbitt Reply-To: snesbitt@cobaltgroup.com Organization: The Cobalt Group To: user@ant.apache.org Subject: Calling Ant from Java program - Help with ProjectHelper class! Date: Tue, 6 Sep 2005 19:24:49 -0700 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200509061924.49645.snesbitt@cobaltgroup.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N All: I am trying to invoke an Ant build from within a java program. The build=20 system itself includes both: =2D a namespace declarations ()) The API docs reference 2 helpers - ProjectHelper2 and ProjectHelperImpl. I= =20 can't get either to work.=20 If I use ProjectHelperImpl the parse fails with an "Unexpected attribute=20 "xmlns:ivy" error. If I remove the remove the namespace declaration the par= se=20 suceeds If I use ProjectHelper2 then I avoid the namespace error, but the import fa= ils=20 with a null pointer exception and an unknown element error. Anybody have any clues/hints on what I am missing? Thanks! =2Dsteve =2D-=20 Stephen Nesbitt Senior Configuration Management Engineer The Cobalt Group snesbitt@cobaltgroup.com x8271 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org