Re: Setting classpath when invoking org.apache.tools.ant.Main.main()

2002-11-14 Thread Martin
- From: "Mahfudh Junaryanto" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 9:28 PM Subject: RE: Setting classpath when invoking org.apache.tools.ant.Main.main() Thanks Keith, I have done that, except that

RE: Setting classpath when invoking org.apache.tools.ant.Main.main()

2002-11-14 Thread Mahfudh Junaryanto
Enterprise WebServices & E-Business Solutions! Singapore|Malaysia|India|China|Hong Kong|Middle East|Europe|Indonesia -Original Message- From: Keith Hatton [mailto:khatton@;axiomsystems.com] Sent: Thursday, November 14, 2002 8:49 PM To: Ant Users List Subject: RE: Setting classpath

RE: Setting classpath when invoking org.apache.tools.ant.Main.main()

2002-11-14 Thread Keith Hatton
Isn't it just as easy to add it to your build.xml? I think you will need something like -Original Message- From: Mahfudh Junaryanto [mailto:mahfudh.junaryanto@;readiminds.com] Sent: 14 November 2002 12:11 To: [EMAIL PROTECTED] Subject: Setting classpath when inv

Setting classpath when invoking org.apache.tools.ant.Main.main()

2002-11-14 Thread Mahfudh Junaryanto
Hi, >From a java program, I invoke org.apache.tools.ant.Main.main() method. My build.xml contains element that required specific jar file , How can I include that jar file so the element is recognized by ant. Here is more specific example: I have weblogic.ej

Re: Problem in setting classpath

2002-09-01 Thread Jacob Kjome
set up a element with an id="somename" that contain s and/or s pointing to any jars your need to have in your classpath. Then, nest a element inside your element. Jake At 09:23 AM 9/1/2002 -0700, you wrote: >Hi , > > I am using SUN ONE application server. I am using > tag to deploy the

Problem in setting classpath

2002-09-01 Thread amol desai
Hi , I am using SUN ONE application server. I am using tag to deploy the application.TO deploy the appln. it requires two jar files to be set in the classpath.The above tag doen not contain a attribute to set the classpath Presently, I am setting these jars , explicitly through the command lin

RE: setting classpath using classpathref attribute

2002-05-30 Thread Diane Holt
--- "Das, Kuntal" <[EMAIL PROTECTED]> wrote: > IS there anyway to reference a variable in the path element, w/o using a > command-line argument ? Sure -- just make sure the property's been set before you reference it. IOW, either set the needed properties at the project level before your project

RE: setting classpath using classpathref attribute

2002-05-30 Thread Das, Kuntal
ginal Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 6:43 AM To: Ant Users List Subject: Re: setting classpath using classpathref attribute Karen Davies wrote: > Hi all, > I've just created a simple bui

Re: setting classpath using classpathref attribute

2002-05-30 Thread Conor MacNeill
Karen Davies wrote: > Hi all, > I've just created a simple build file, setting the classpath as follows: > > > > > > > > classpathref="test.classpath"/> > > > However, when i run ant it does not pick up this classpath at all, it will > only pick it up if i set is as:

setting classpath using classpathref attribute

2002-05-30 Thread Karen Davies
Hi all, I've just created a simple build file, setting the classpath as follows: However, when i run ant it does not pick up this classpath at all, it will only pick it up if i set is as: If anyone has any suggestions as to what i'm doing wrong, much appreciated.

Re: Setting classpath for Taskdef

2001-12-09 Thread Stefan Bodewig
On Mon, 10 Dec 2001, William Ferguson <[EMAIL PROTECTED]> wrote: > optional.jar is already in %ANT_HOME%\lib and it finds it OK. And that's the problem. You load the task implementation from the system classpath - and the system classloader doesn't know about j2ee.jar. This is Java's model of

Re: Setting classpath for Taskdef

2001-12-09 Thread Jill Stephenson
: java.net.ConnectException: Connection refused: connect Total time: 2 seconds -- Jill - Original Message - From: "William Ferguson" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 2:56 PM

RE: Setting classpath for Taskdef

2001-12-09 Thread William Ferguson
essage - > From: "William Ferguson" <[EMAIL PROTECTED]> > To: "'Ant Users List'" <[EMAIL PROTECTED]> > Sent: Monday, December 10, 2001 2:27 PM > Subject: RE: Setting classpath for Taskdef > > > > The task and the taskdef both have th

Re: Setting classpath for Taskdef

2001-12-09 Thread Jill Stephenson
more information from that. -- Jill - Original Message - From: "William Ferguson" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 2:27 PM Subject: RE: Setting classpath for Taskdef > The task and t

RE: Setting classpath for Taskdef

2001-12-09 Thread William Ferguson
The task and the taskdef both have the exact same case 'mimeMail'. > -Original Message- > From: Jill Stephenson [mailto:[EMAIL PROTECTED]] > Sent: Monday, 10 December 2001 14:52 > To: Ant Users List > Subject: Re: Setting classpath for Taskdef > > > Tr

Re: Setting classpath for Taskdef

2001-12-09 Thread Jill Stephenson
ot; <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 12:29 PM Subject: RE: Setting classpath for Taskdef > OK. > > If I remove optional.jar from %ANT_HOME%\lib but define it in the MimeMail > taskdef along with J2ee.jar, > then Ant can't find the MimeMail task. > > ie

RE: Setting classpath for Taskdef

2001-12-09 Thread William Ferguson
def. So either I'm doing something totally wrong, or the classpath attribute doesn't appear to function. William > -Original Message- > From: Steve Loughran [mailto:[EMAIL PROTECTED]] > Sent: Monday, 10 December 2001 12:55 > To: Ant Users List > Subject: Re: Se

Re: Setting classpath for Taskdef

2001-12-09 Thread Steve Loughran
- Original Message - From: "William Ferguson" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Sunday, December 09, 2001 4:32 PM Subject: RE: Setting classpath for Taskdef > Thanks Eric, > > optional.jar is alread

RE: Setting classpath for Taskdef

2001-12-09 Thread William Ferguson
001 12:29 > To: Ant Users List > Subject: Re: Setting classpath for Taskdef > > > As per the optional task doco for MimeMail "JavaMail and > Java Activation Framework are required for this task." So > if you don't want to put j2ee.jar in your classpath you must

Re: Setting classpath for Taskdef

2001-12-09 Thread Jill Stephenson
From: "William Ferguson" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 10:32 AM Subject: RE: Setting classpath for Taskdef > Thanks Eric, > > optional.jar is already in %ANT_HOME%\lib and it finds it OK.

RE: Setting classpath for Taskdef

2001-12-09 Thread William Ferguson
rik Hatcher [mailto:[EMAIL PROTECTED]] > Sent: Monday, 10 December 2001 10:48 > To: Ant Users List > Subject: Re: Setting classpath for Taskdef > > > At the very least you'll also need Ant's optional.jar in that nested > classpath, as that is where > org.apache.t

Re: Setting classpath for Taskdef

2001-12-09 Thread Erik Hatcher
--- Original Message - From: "William Ferguson" <[EMAIL PROTECTED]> To: "Ant User (E-mail)" <[EMAIL PROTECTED]> Sent: Sunday, December 09, 2001 6:33 PM Subject: Setting classpath for Taskdef > Has anyone managed to set the classpath attribute for TaskDef? &

Setting classpath for Taskdef

2001-12-09 Thread William Ferguson
Has anyone managed to set the classpath attribute for TaskDef? Eg I wanted to get the MimeMail task to work without having to put j2ee.jar into %ANT_HOME%\lib or specify it on the command line when invoking Ant. The doco for Taskdef (and some posts on this list) seemed to suggest that the followi

setting classpath within the target

2001-10-28 Thread Hakan Koseoglu
Hi all, Is there a way to set the classpath within the target which would affect the current running Ant, while moving between the targets? The main problem is, I can't pass a classpath to a JVM executed with exec command. -- Hakan Koseoglu PCMS Datafit Ltd. 3 Avro Court Ermine Business Park

RE: Setting classpath.

2001-08-01 Thread David Roe
in, Conor. Regards, David -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 5:24 PM To: [EMAIL PROTECTED] Subject: RE: Setting classpath. David, How don't they work? Run ant with -debug and look for the javac command that it generates.

RE: Setting classpath.

2001-08-01 Thread Conor MacNeill
ilto:[EMAIL PROTECTED]] > Sent: Thursday, 2 August 2001 6:06 AM > To: Ant-User@Jakarta. Apache. Org > Subject: Setting classpath. > > HI, > > What am I doing wrong here? I have tried to set the classpath in the environment as well as setting it in the build file, neither of t

Setting classpath.

2001-08-01 Thread David Roe
HI, What am I doing wrong here? I have tried to set the classpath in the environment as well as setting it in the build file, neither of them work. Both samples have been included here. Thank you very much. Regards, David ** Compile target.

Re: Setting classpath for optional task

2001-03-05 Thread Stefan Bodewig
William Lee <[EMAIL PROTECTED]> wrote: > I'm using JUnit 3.5 and Ant 1.3b3. Let me see >classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"> > > > > > > this doesn't include the optional task itself, just JUnit. > This should work.

Re: Setting classpath for optional task

2001-03-05 Thread William Lee
I've tried what Nico has suggested (in fact, almost an identical copy with modification to where I put my junit.jar file) and I still get the class not found error. I'm using JUnit 3.5 and Ant 1.3b3. If I invoke the same build file with the CLASSPATH for JUnit already set before I invoke Ant, th

Re: Setting classpath for optional task

2001-03-05 Thread William Lee
To: <[EMAIL PROTECTED]> > Sent: Friday, March 02, 2001 11:25 PM > Subject: Re: Setting classpath for optional task > > > I've try this but I still get a junit/framework/TestListener class not > > found error. Note that my junit.jar is not in the same ant's lib

Re: Setting classpath for optional task

2001-03-04 Thread Stefan Bodewig
Jason Pringle <[EMAIL PROTECTED]> wrote: > I'll make a guess (ant dev guys keep me honest here)... > > The optional tasks are loaded by the "main" ant startup, which means > any referenced classes (such as JUnit's stuff) must be on the > classpath that Ant was started with in the "ant script".

RE: Setting classpath for optional task

2001-03-02 Thread Jason Pringle
other jars (for ant) are. You could even have it make some guesses as to the location if JUNIT_HOME is not defined (I think the scripts do this if JAVA_HOME and ANT_HOME are not defined). -Original Message- From: William Lee [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 2:25 PM T

Re: Setting classpath for optional task

2001-03-02 Thread Nico Seessle
- Original Message - From: "William Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 02, 2001 11:25 PM Subject: Re: Setting classpath for optional task > I've try this but I still get a junit/framework/TestListener class not > found

Re: Setting classpath for optional task

2001-03-02 Thread William Lee
ATH variable in the script that invokes Ant. Can anyone tell me why? Will Nico Seessle wrote: > > - Original Message - > From: "William Lee" <[EMAIL PROTECTED]> > To: "Ant User" <[EMAIL PROTECTED]> > Sent: Thursday, March 01, 2001 6:47 PM

Re: Setting classpath for optional task

2001-03-02 Thread Stefan Bodewig
Gary Lawson <[EMAIL PROTECTED]> wrote: > We used > > > This is the way to set the CLASSPATH for the testcases. What Wiliam asked for - at least this is what I and obviously Nico understood - is something different. He wants to set the CLASSPATH the task itself is loaded from. Nico's

RE: Setting classpath for optional task

2001-03-02 Thread Gary Lawson
We used . . . [snip] . . HTH Gary -Original Message- From: Nico Seessle [mailto:[EMAIL PROTECTED]] Sent: 01 March 2001 19:19 To: [EMAIL PROTECTED] Subject: Re: Setting classpath for optional task - Original

Re: Setting classpath for optional task

2001-03-01 Thread Nico Seessle
- Original Message - From: "William Lee" <[EMAIL PROTECTED]> To: "Ant User" <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 6:47 PM Subject: Setting classpath for optional task > Is there a way I can set the classpath for the optional tasks WITHIN

Setting classpath for optional task

2001-03-01 Thread William Lee
Is there a way I can set the classpath for the optional tasks WITHIN the ant build.xml? For now, if I want to use a task such as JUnit, I need to set the classpath explicitly before I call the ant main class. Since I don't really want to depend on the environment variable CLASSPATH for various r

Re: Setting classpath

2001-01-02 Thread Peter Donald
At 04:22 23/12/00 -0500, David Corbin wrote: >Are there any plans to allow Ant to "set the classpath" for particular >tasks? I find it extremely annoying to have to set the classpath >outside of ant. Hopefully in Ant2.0 you will be able to add the attribute ant:classpath="..." and it will autom

Re: Setting classpath

2001-01-02 Thread Peter Donald
At 11:45 24/12/00 +0100, Nico Seessle wrote: >> And, I've discovered, when you set the classpath for the junit task, you >> have to add both optional.jar and ant.jar to the classpath (at least you >> do if you have "fork" set). > >What are you testing? And what is Ant's reaction if you don't incl

Re: Setting classpath

2000-12-29 Thread Peter Donald
At 04:22 23/12/00 -0500, David Corbin wrote: >Are there any plans to allow Ant to "set the classpath" for particular >tasks? I find it extremely annoying to have to set the classpath >outside of ant. Hopefully in Ant2.0 you will be able to add the attribute ant:classpath="..." and it will autom

Re: Setting classpath

2000-12-24 Thread Nico Seessle
- Original Message - From: "David Corbin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 24, 2000 1:57 PM Subject: Re: Setting classpath > > > Is there anyway to refer to the classpath that ant's VM was invoked > >

Re: Setting classpath

2000-12-24 Thread David Corbin
Nico Seessle wrote: > > - Original Message - > From: "David Corbin" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, December 24, 2000 2:32 AM > Subject: Re: Setting classpath > > > And, I've discovered, when you set

Re: Setting classpath

2000-12-24 Thread Nico Seessle
- Original Message - From: "David Corbin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 24, 2000 2:32 AM Subject: Re: Setting classpath > And, I've discovered, when you set the classpath for the junit task, you > have to add bot

Re: Setting classpath

2000-12-23 Thread David Corbin
Sylvain Rey wrote: > > > Oh yeah. One more thing. I seem to recall that the junit task won't > > work if Junit is not on your classpath before you launch ant. It's been > > a week since I was dealing with this problem, so I could have it wrong, > > but that's what it seemed like. > > I had th

RE: Setting classpath

2000-12-23 Thread Sylvain Rey
> Oh yeah. One more thing. I seem to recall that the junit task won't > work if Junit is not on your classpath before you launch ant. It's been > a week since I was dealing with this problem, so I could have it wrong, > but that's what it seemed like. I had the same problem with JUnit. As I di

Re: Setting classpath

2000-12-23 Thread David Corbin
Original Message - > From: "David Corbin" <[EMAIL PROTECTED]> > To: "Ant User" <[EMAIL PROTECTED]> > Sent: Saturday, December 23, 2000 10:22 PM > Subject: Setting classpath > > > Are there any plans to allow Ant to "set the classp

Re: Setting classpath

2000-12-23 Thread David Corbin
Nico Seessle wrote: > > - Original Message - > From: "David Corbin" <[EMAIL PROTECTED]> > To: "Ant User" <[EMAIL PROTECTED]> > Sent: Saturday, December 23, 2000 10:22 PM > Subject: Setting classpath > > > Are there any plans t

Re: Setting classpath

2000-12-23 Thread Nico Seessle
- Original Message - From: "David Corbin" <[EMAIL PROTECTED]> To: "Ant User" <[EMAIL PROTECTED]> Sent: Saturday, December 23, 2000 10:22 PM Subject: Setting classpath > Are there any plans to allow Ant to "set the classpath" for particular &

Setting classpath

2000-12-23 Thread David Corbin
Are there any plans to allow Ant to "set the classpath" for particular tasks? I find it extremely annoying to have to set the classpath outside of ant. -- David Corbin Mach Turtle Technologies, Inc. http://www.machturtle.com [EMAIL PROTECTED]