Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 98452 invoked by uid 500); 11 Oct 2001 19:31:56 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 98439 invoked from network); 11 Oct 2001 19:31:55 -0000 Message-ID: <20011011193201.43489.qmail@web9701.mail.yahoo.com> Date: Thu, 11 Oct 2001 12:32:01 -0700 (PDT) From: Don Taylor Subject: RE: Problem with classpath - newbie To: ant-user@jakarta.apache.org In-Reply-To: <7415BAE16406EA438981D4A98DE0AE351AF9C6@phexch01.silverline.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ah yes! The ol' fork="yes" problem. I'm so used to setting it out of habit I didn't notice you hadn't. -- Don --- Kalyan Dasika wrote: > Wow! it works... > > it did not work without fork="yes" though.. > > Thanks a lot Don and Diane for your time. > > The target looks like this now.. > > if="junit.present"> > > > location="${build.jarpath}/${app.name}.jar"/> > > > > > Regards, > Kalyan > > -----Original Message----- > From: Diane Holt [mailto:holtdl@yahoo.com] > Sent: Thursday, October 11, 2001 11:02 AM > To: ant-user@jakarta.apache.org > Subject: RE: Problem with classpath - newbie > > > The way you originally had it should be fine -- not sure why you have > the > empty or why you're including > ${java.class.path} > if > you're not forking, but the one pointing to your jar-file using > location > should work. Assuming the properties you're referencing are resolving > to > the right things, you should be able to just have: > > > > > > > > You might want to try running it with fork="yes" and -verbose to see > what > that looks like. > > Diane > > --- Kalyan Dasika wrote: > > This is what i have done, > > > > > if="junit.present"> > > > > > > > > > > > > > > > /> > > > > > > > > > > > > before it was > > > > > if="junit.present"> > > > > > > > location="${build.jarpath}/${app.name}.jar" /> > > > > > /> > > > > > > > > > > - Kalyan > > > > -----Original Message----- > > From: Don Taylor [mailto:donald_l_taylor_jr@yahoo.com] > > Sent: Thursday, October 11, 2001 9:32 AM > > To: ant-user@jakarta.apache.org > > Subject: RE: Problem with classpath - newbie > > > > > > You need to make sure the element is directly under the > > element. If you can't get that to work then send a > snippet > > of the build file you tried. > > > > -- Don > > > > --- Kalyan Dasika wrote: > > > No luck.. > > > > > > This is the error message that i get... > > > > > > BUILD FAILED > > > > > > build.xml:32: Class class org.apache.tools.ant.Path doesn't > support > > > the > > > nested " > > > fileset" element > > > > > > - Kalyan > > > > > > -----Original Message----- > > > From: Don Taylor [mailto:donald_l_taylor_jr@yahoo.com] > > > Sent: Thursday, October 11, 2001 5:35 AM > > > To: ant-user@jakarta.apache.org > > > Subject: Re: Problem with classpath - newbie > > > > > > > > > Try replacing > > > > > > > > > > > > with > > > > > > > > > > > > > > > > > > -- Don > > > > > > --- Kalyan Dasika wrote: > > > > Hi, > > > > I have a classpath problem... > > > > > > > > This is a error part of the messages that i get when i run, ant > > > > -verbose > > > > from the command line. > > > > > > > > [java] Calling com.test.HelloWorld > > > > [java] Java args: [] > > > > > > > > BUILD FAILED > > > > > > > > build.xml:30: Could not find com.test.HelloWorld. Make sure you > > > have > > > > it > > > > in your > > > > classpath > > > > > > > > > > > > The target in the build.xml that i am using which executes the > > > above > > > > class. > > > > > > > > > > > if="junit.present"> > > > > > > > > > > > > > > > location="${build.jarpath}/${app.name}.jar" /> > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > I have the class, com.test.HelloWorld in the jar file which i > had > > > set > > > > in > > > > the classpath of the build.xml > > > > > > > > Due to some reason the jar file is not being set in the > classpath.. > > > > is > > > > there any else that i need to do? Could some one give > suggestions? > > > > > > > > Regards, > > > > Kalyan > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Make a great connection at Yahoo! Personals. > > > http://personals.yahoo.com > > > > > > __________________________________________________ > > Do You Yahoo!? > > Make a great connection at Yahoo! Personals. > > http://personals.yahoo.com > > > ===== > (holtdl@yahoo.com) > === message truncated === __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com