I'm running Ant 1.6. Since I'm not the sysadmin, I can't easily upgrade.
I've tried the "-lib" directive in my shell script ...
ant -lib
/export/third-party/etsbea/staging/wls_9.2.2/CedarPoint_Service/deployment/APP-INF/lib/junit.jar
-buildfile build-junit-test.xml -Denv=$WLS_ENV -Dtier=$TI
With current ant tasks, one cannot change the classpath used within build.xml.
For junit and ant 1.7.0 +, one can set the location of the junit.jar
file within the
task itself - this is indeed the recommended way as it means that one
does not need to modify the ant distribution or use -lib at the
Thanks for the feedback. After playing around persistently, I got it to work.
Please see below, either of the exec tasks work now:
Rez> Date: Sun, 23 Nov 2008 21:11:06 +> From: [EMAIL PROTECTED]> To:
user@ant.apache.org> Subject: Re: Running exec tast> > 2008/11/20 Rez
My mistake. I realized it as soon as I was writing a build.xml to test it:
Use:
and not
Notice: It is suppose to be "refid" and not simply "id". When you use
"id", you are setting an "id". When you are using "refid", you are
referring to a previously set id.
Here's my test:
Hi David,
DEBUG: project.class.path.property =
"${project.class.path}"
I followed your suggestion, only I put the FAIL statement in the target being
executed ...
but what is printed out on the screen is
/export/third-party/etsbea/staging/wls_9.2.2/CedarPoint_Service/ant-common-chec
Try printing out project.class.path right after you define it:
DEBUG: project.class.path.property =
"${project.class.path.property}"
The will stop the build from progressing, so you can see the
classpath. You could use instead if you prefer.
--
David Weintraub
[EMAIL PROTECTED]
On Mon, Nov
I tried your suggestion, but no luck. I think I'm not including my classpath
correctly in my build-junit-test.xml script. I have ...
and within "build.xml" I define what you suggest ...
But how does my "" script under
On Mon, Nov 24, 2008 at 04:40:19PM +, [EMAIL PROTECTED] wrote:
> Hi,
>
> Is there a way to see what ANT thinks is in my classpath? I have a condition
> that's failing
>
>
>
>
>
>
>
>
>
> But the JAR file (junit.jar) is set up in my project.class.path ...
>
>
>
Hi,
Is there a way to see what ANT thinks is in my classpath? I have a condition
that's failing
But the JAR file (junit.jar) is set up in my project.class.path ...
Not quite sure the right way to debug this. Thanks, -
Not sure whats a good approach, ideally we'd have a release repo and a
development repo.
Jeffrey Fredrick wrote:
On Fri, Nov 21, 2008 at 1:29 PM, csanders <[EMAIL PROTECTED]> wrote:
We are a team of about 20 I was hoping to have a publicly shared repo where
all team members could publish th
>ps. I thought the version number on the file "antlr-2.7.2.jar"
>denotes the version of Ant.
Yes, this is the version number. But from Antlr (parser generator) not
Ant (build tool) ;-)
Jan
-
To unsubscribe, e-mail: [EMAIL PROT
Thanks guys i have resolved this problem by excluding the ${src.dir}
directories from ${junit.path}
ps. I thought the version number on the file "antlr-2.7.2.jar" denotes the
version of Ant. Obviously i was wrong :)
Thanks
On Mon, Nov 24, 2008 at 1:14 PM, Rebhan, Gilbert <
[EMAIL PROTECTED]> wro
Does anyone use Ivy to manage dependencies on specific JRE and/or JDK
versions?
We have projects that need to be compiled against different JRE
versions (1.4.x, 1.5, 1.6) or with a specific JDK. For example one
project needs to run under 1.4.x, but compiling it against 1.5 would
select overloads f
Hi,
I forgot to mention that i am using ANT v2.7.2
Many thanks
On Mon, Nov 24, 2008 at 12:18 PM, Ziggy <[EMAIL PROTECTED]> wrote:
> Can anyone see why "excludes" in this code snippet does not work?
>
> [code]
>
> Compiling java sources:
> ${junit.path}**
> destdir="${c
-Original Message-
From: Ziggy [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 2:03 PM
To: user@ant.apache.org
Subject: Re: problem with "excludes" in javac target.
/*
Hi,
I forgot to mention that i am using ANT v2.7.2
Many thanks
*/
ant version 2.7.2 !?
You're Ziggy Stardu
srcdir and excludes form an implicit fileset.
excludes and includes are relative to that basedir.
In that case change your junit.path to bt/ccs21/test .
btw: there is no Ant 2.7.2. Last released Ant is 1.7.1 (typo?).
Jan
>-Ursprüngliche Nachricht-
>Von: Ziggy [mailto:[EMAIL PROTECTED]
You can maybe found what you are searching for on :
http://ant.apache.org/manual/proxy.html
2008/11/24 Jmeter PRA <[EMAIL PROTECTED]>:
> Hi
>
> I ahve installed the firewall client agent for microsoft windows(for proxy
> authentication) and running the ant script.
>
> I want even proxy authentica
Can anyone see why "excludes" in this code snippet does not work?
[code]
Compiling java sources:
${junit.path}**
[/code]
Here are the relevant properties used in the above code
[code]
[/code]
Thanks
Hi
I ahve installed the firewall client agent for microsoft windows(for proxy
authentication) and running the ant script.
I want even proxy authentication in my ant script.Could anybody help me with
this
Thanks,
Pra
Hi experts,
I'm having strange classpath problem with custom task.
The ANT version I use is:
Apache Ant version 1.7.0 compiled on December 13 2006
and the JAVA version is 1.6
I have a java class XYZ.java that calls JMX client APIs to get mbean server and
then get the mbean and invoke the operati
20 matches
Mail list logo