Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 9607 invoked from network); 21 Jul 2009 12:41:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jul 2009 12:41:46 -0000 Received: (qmail 26579 invoked by uid 500); 21 Jul 2009 12:42:50 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 26490 invoked by uid 500); 21 Jul 2009 12:42:50 -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 26480 invoked by uid 99); 21 Jul 2009 12:42:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 12:42:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sfloess@nc.rr.com designates 75.180.132.122 as permitted sender) Received: from [75.180.132.122] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.122) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 12:42:39 +0000 Received: from flossware.homelinux.org ([66.57.231.67]) by cdptpa-omta03.mail.rr.com with ESMTP id <20090721124217614.ZTXD29330@cdptpa-omta03.mail.rr.com> for ; Tue, 21 Jul 2009 12:42:17 +0000 Received: from desktop-vm.adminserver.flossware.com (desktop-vm.adminserver.flossware.com [192.168.168.236]) by flossware.homelinux.org (Postfix) with ESMTP id F17E42170034 for ; Tue, 21 Jul 2009 08:42:16 -0400 (EDT) Date: Tue, 21 Jul 2009 08:42:16 -0400 (EDT) From: "Scot P. Floess" X-X-Sender: sfloess@desktop-vm.adminserver To: Ant Users List Subject: Re: how to change name of war & ear file based on user input values In-Reply-To: <20090721173048137.00000003804@IFLEXPAH169> Message-ID: References: <20090721173048137.00000003804@IFLEXPAH169> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org Well just include the environment variables in your call to the ear task... For example, I am modifying the example given in the Ant documentation for creating an ear: HTH, Flossy On Tue, 21 Jul 2009, edumudi.viswanath@oracle.com wrote: > Hi, > > > > I have an build.xml file. > > > > If I run the target "ear-target" using ant -Dxyz=1 -Dyyy=1 ear-target @ command prompt, it should create webpro11.ear & webpro11.war > > > > & if I run "ear-target" using ant -Dxyz=1 -Dyyy=2 ear-target @ command prompt, it should create webpro12.ear & webpro12.ear > > > > How can I achieve this ? > > > > Any idea? > > > > Thanks in adavance. > > > > Regards, > > evviswanath > > Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-890-8117 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org