-
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
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
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
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
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
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
--- "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
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
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:
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.
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
:
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
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
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
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
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
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
- 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
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
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.
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
--- 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?
&
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
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
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.
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
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.
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.
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
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
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".
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
- 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
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
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
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
- 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
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
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
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
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
- 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
> >
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
- 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
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
> 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
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
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
- 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
&
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]
50 matches
Mail list logo