Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 85991 invoked from network); 19 Jan 2005 13:26:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Jan 2005 13:26:17 -0000 Received: (qmail 6956 invoked by uid 500); 19 Jan 2005 13:26:11 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 6908 invoked by uid 500); 19 Jan 2005 13:26:11 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 6894 invoked by uid 99); 19 Jan 2005 13:26:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from tomts22.bellnexxia.net (HELO tomts22-srv.bellnexxia.net) (209.226.175.184) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 19 Jan 2005 05:26:09 -0800 Received: from [192.168.2.13] ([64.231.62.134]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050119132605.KWWK1919.tomts22-srv.bellnexxia.net@[192.168.2.13]>; Wed, 19 Jan 2005 08:26:05 -0500 Received: from 127.0.0.1 (AVG SMTP 7.0.300 [265.7.0]); Wed, 19 Jan 2005 08:26:13 -0500 Message-ID: <000d01c4fe2a$7239d210$0d02a8c0@athlon> From: "Rhino" To: "ant-user" , "Swathi Rao" References: <2d49b37b05011509366ad1b8a2@mail.gmail.com> <004401c4fb30$d2a46e50$0d02a8c0@athlon> <2d49b37b05011903445f68cb06@mail.gmail.com> Subject: Re: Setting variable classpath based on user input Date: Wed, 19 Jan 2005 08:26:12 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm putting this back on this list so that others can help you - and learn from your question and the responses you get. I'm afraid I can't help any further with your problem. Rhino ----- Original Message ----- From: "Swathi Rao" To: "Rhino" Sent: Wednesday, January 19, 2005 6:44 AM Subject: Re: Setting variable classpath based on user input > Hello Rhino, > Sorry for the delay in response. I was down with fever :-( > I wanted to thank you for the help. It certainly gave me an idea to > solve the problem. > > However I wanted to know if there was a way where we could copy > classpaths from one name to another, similar to the "PropertyCopy" > task in Ant-Contrib. The reason why I am asking is that it could help > me solve similar issues while defining a macrodef which uses a > classpath refid based on the user input. For ex in my build.xml I had > a macrodef defined as follows - > > > > > > > > > dir="@{testWorkingDir}" > maxmemory="1536M" > output="@{testWorkingDir}/@{output}" > error="@{testWorkingDir}/@{moduleName}.err" > fork="true" > resultproperty="@{moduleName}.done"> > > > > > > > Basically the line where the classpath refid is given, I want to > change it to accept different refid's based on a userinput. I tried > using PathtoFileset, If then Else etc from the Ant-Contrib tasks to > acheive it. Finally I changed the classpath refid names to be > classpath.${userinput}(for ex: classpath.userinput1 or > classpath.userinput2). It worked in this case..however not sure if > this would be a feasible solution when things get more complicated. > Regards, > Swathi. > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org