Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42705 invoked from network); 15 Feb 2011 16:48:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2011 16:48:10 -0000 Received: (qmail 10299 invoked by uid 500); 15 Feb 2011 16:48:10 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 9906 invoked by uid 500); 15 Feb 2011 16:48:07 -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 9889 invoked by uid 99); 15 Feb 2011 16:48:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 16:48:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.210.129] (HELO web161202.mail.bf1.yahoo.com) (98.139.210.129) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 15 Feb 2011 16:47:59 +0000 Received: (qmail 32992 invoked by uid 60001); 15 Feb 2011 16:47:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1297788458; bh=qvFWbNWitMPWE+sR76M4i35tGPEeYyZBUqg8ORV4/EU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=zBDAi26DD/DeVmgBAyHbLwxE7UnylFWYZI/S1O6D4gcg332GbZ+Fbm7wJHs5xlV+xV14lG7tCvKyZuy5nniyM4cLjeqduhlXEckDo3kUeDNMkFFv1+7SFXois5aHDyRfIDpQ4eKIZ/lyzbgfJpwWAmWceG+li6WSxRjdtKkUnpQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=oNCp0PU0cfiazwnvE8qLQoLv/Pmqw5kVl3KpBacoBBL87RebOLj8U+3aDmIZ8ijJKzNXyMG38q6bAR5YnoNQiCbJ7FnMa1e2ig40KtI0RIIHxWDXSmo9WImD/wkLRWHtYBpSHtQRFXVo9aAI7hU75cxVDTM2d4ud3/11rqEFeCs=; Message-ID: <269809.16260.qm@web161202.mail.bf1.yahoo.com> X-YMail-OSG: PvWS6bAVM1nn2sBw1nr0FqWrvr40R0Bnxna.SIBZEm9EgZV 454K47iZIizgfoDwSrPc2Y4OliLEgltHeYWiEleD51zQovAMxhxscAfVKkvU .ky0zvjluMaNbUY7R7gGcQ0k7gvorHRO5P9fw3yu1MIbEwSwLpG1z_1d58d3 qaeCkrgT7p2wr5n6hJGVJTENXyTR4QFEG2EFqZYAvY5UMhhLuqj_xJMyHw2D 8SH8Xw0AVTpxIExdF5C.fCHDVeT7VeFg2Ac4Esb_tXiWCX_010.E7ApCcsW7 34rp5AYFiCPSy.AUy183UCfYQ5rozzYPG3bdJIiFjm2PAuWr9LIKQr1PUFrc - Received: from [63.251.6.89] by web161202.mail.bf1.yahoo.com via HTTP; Tue, 15 Feb 2011 08:47:38 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.109.292656 Date: Tue, 15 Feb 2011 08:47:38 -0800 (PST) From: Vimil Saju Subject: Re: project.createTask() not working with ant-1.8.2 To: Ant Users List In-Reply-To: <1297785197767-3386140.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0A> Just to clarify, if I use getProject(), I'm not getting an=0A> error.= =A0 But I=0A> would like to create a new Project in the Obfuscate's=0A> exe= cute method where I=0A> want to run my tasks.=0A> =0A> Is there no way to c= reate a new Project and run the tasks=0A> that I want?=0A=0AIt s not advisa= ble to create a new project unless there is a specific reason. If a new pro= ject is created, the task cannot access any of the properties or references= defined in the project under which task is defined. =0A=0AIf you want to e= xecute your task under a new project all you need is to put the task under = a separate target and the invoke the target using the antcall task.=0A=0AIf= you really need to create a new Project object, i think it is not sufficie= nt to just create an instance of the Project object. Look at the source cod= e of antcall task to see how a new project is created.=0A=0A=0A=0A =0A_____= ___________________________________________________________________________= ____=0AIt's here! Your new message! =0AGet new email alerts with the free = Yahoo! Toolbar.=0Ahttp://tools.search.yahoo.com/toolbar/features/mail/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org