Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 35233 invoked from network); 14 Dec 2004 13:43:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Dec 2004 13:43:18 -0000 Received: (qmail 73090 invoked by uid 500); 14 Dec 2004 13:42:05 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 72952 invoked by uid 500); 14 Dec 2004 13:42:02 -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 72912 invoked by uid 99); 14 Dec 2004 13:42:00 -0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=URIBL_SBL X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp.volantis.com (HELO mail.volantis.com) (213.86.197.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Dec 2004 05:41:56 -0800 Received: squid 10.20.30.27 from 10.20.30.21 10.20.30.21 via HTTP with MS-WebStorage 6.0.6249 Received: from c-jabley by squid; 14 Dec 2004 13:41:47 +0000 Subject: Re: help classpath issue From: James Abley To: Ant Users List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1103031707.4258.26.camel@c-jabley> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 14 Dec 2004 13:41:47 +0000 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Can't see anything obvious, apart from the echo task nested in the java task - I don't think that will work. What differences do you see when you use the -verbose or -debug option to dump the arguments to the java task, versus the arguments that you are passing when using the java runtime on the command line? i.e. [java] Executing '/usr/j2sdk1.4.2_06/jre/bin/java' with arguments: [java] '-classpath' [java] '/work/ant-test/classpaths/built/classes' [java] 'org.something.Sample' c.f. java -classpath /work/ant-test/classpaths/built/classes/ org.something.Sample On Tue, 2004-12-14 at 12:57, Rajiv Jaitly wrote: > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Please read the disclaimer at the bottom of this e-mail. > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Hi, > > I have a task (run-jostraca) in my ant script that calls a Java class (org.jostraca.Jostraca) that in turn generates a java file and compiles it. The classpath specified in the target includes everything that is required to compile this generated class successfully but i am still getting a compile error as a particular class was not found. The class it is complaining exist in . > It appears that ant ignores the classpath when it compiles the generated class. But if i run this target with system classpath (in windows environment option) set to correct directory, it works fine. Could anybody please suggest the soultions. Here is the code snippet: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ********************************************************************** > This email is intended for the named recipient(s) only. Its contents > are confidential and may only be retained by the named recipient(s) > and may only be copied or disclosed with the consent of > LCH.Clearnet Limited. If you are not an intended recipient please > delete this e-mail and notify postmaster@lchclearnet.com. > > The contents of this email are subject to contract in all cases, > and LCH.Clearnet Limited makes no contractual commitment save where > confirmed by hard copy. LCH.Clearnet Limited accepts no liability, > including liability for negligence, in respect of any statement in > this email. > > LCH.Clearnet Limited, Registered Office: Aldgate House, > 33 Aldgate High Street, London EC3N 1EA. Recognised as a Clearing > House under the Financial Services & Markets Act 2000. Reg in England No.25932 > Telephone: +44 20 7426 7000 Internet: http://www.lchclearnet.com > ********************************************************************** > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org