classpath problem with custom task

2008-11-24 Thread Michelle Lin
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 operation on the mbean.

To invoke this class, I need two jars: x1.jar and wljmxclient.jar.
I defined following :

 


  
  

Using this  definition and invoking XYZ class directly works fine:


   
   ...
   
  
  
  ...
   
 

I have following message:
---
-
[java] Connecting to: 
service:jmx:t3://:/jndi/weblogic.management.mbeanservers.runtime

BUILD SUCCESSFUL
-- 
Then I write a custom task XYZTask.java that gathers and validates user inputs, 
and calls XYZ class to do the same thing. This XYZTask.java is also in x1.jar. 
And I have following definition:


 

 


   
   ...
   


And I'm seeing following error:
---
 [myTask] Connecting to: 
service:jmx:t3://:/jndi/weblogic.management.mbeanservers.runtime
[myTask] java.net.MalformedURLException: Unsupported protocol: t3
[myTask]  at 
javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:327)
 
...
---

This seems to me the "wljmxclient.jar" is not in the classpath when XYZ class 
is invoked.

Anything wrong with what I'm doing?

Thank you in advance for any suggestions/tips...

- michelle



  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Proxy setting

2008-11-24 Thread Jmeter PRA
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


problem with "excludes" in javac target.

2008-11-24 Thread Ziggy
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


Re: Proxy setting

2008-11-24 Thread Gilles Scokart
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 authentication in my ant script.Could anybody help me with
> this
>
>
> Thanks,
> Pra
>



-- 
Gilles Scokart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: problem with "excludes" in javac target.

2008-11-24 Thread Jan.Materne
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] 
>Gesendet: Montag, 24. November 2008 13:18
>An: user@ant.apache.org
>Betreff: problem with "excludes" in javac target.
>
>Can anyone see why "excludes" in this code snippet does not work?
>
>[code]
>
>Compiling java sources:
>${junit.path}**
>destdir="${classes.dir}">
>
>
> 
>[/code]
>
>Here are the relevant properties used in the above code
>
>[code]
>
>
>
>[/code]
>
>
>Thanks
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with "excludes" in javac target.

2008-11-24 Thread Rebhan, Gilbert


-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 Stardust and write your posting in  the year 2023  ?
;-)))

Regard, Gilbert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with "excludes" in javac target.

2008-11-24 Thread Ziggy
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="${classes.dir}">
> 
> 
>  
> [/code]
>
> Here are the relevant properties used in the above code
>
> [code]
> 
> 
> 
> [/code]
>
>
> Thanks
>
>
>
>
>


Managing JRE/JDK dependencies

2008-11-24 Thread Niklas Matthies
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 for certain JRE methods that only exist in 1.5+,
thus breaking binary compatibility with 1.4.x. Another example is that
JDK 1.6's javac handles @Override annotations differently than 1.5's
javac, even with -source 1.5, therefore compilation with an actual JDK
1.5 javac is needed to ensure 1.5 source compatibilty.

One issue with managing JREs/JDKs with Ivy is their size. Rt.jar alone
is already 42 MB in 1.6. As for the JDKs, they would either need to be
zipped, so using cachepath (to access a ready-to-use JDK) is not an
option, or the artifact would just be a link to an unzipped copy of
the JDK on a shared network filesystem, but we don't think it's a good
idea to use JDKs remotely.

Any ideas/suggestions/experiences?

-- Niklas Matthies


Re: problem with "excludes" in javac target.

2008-11-24 Thread Ziggy
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]> wrote:

>
>
> -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 Stardust and write your posting in  the year 2023  ?
> ;-)))
>
> Regard, Gilbert
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


AW: problem with "excludes" in javac target.

2008-11-24 Thread Jan.Materne
>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 PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Noobie publishing question

2008-11-24 Thread csanders
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 their artifacts, maybe I'm taking the wrong
approach ?



When you assemble a release are you going to use the artifacts in that
repository or is that just for day-to-day use?

Jtf

  




How to figure out what is in my class path?

2008-11-24 Thread dave.alvarado
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, - Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to figure out what is in my class path?

2008-11-24 Thread Marc Weber
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 ...
> 
>   
> 
> 
> 
> 
>   
> 
> Not quite sure the right way to debug this.  Thanks, - Dave
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

That's a bug I've posted some days ago. The solution is to add the
classpath in the build.xml file manually after (after )


${junit}/junit.jar is your junit.jar file

sed command:
sed -i 's@@@' build.xml


Hopefully someone with more knowledge about the ant build system can add
a one line fix so that this can be configured by -D or by
bulid.properties.

If you want I can prepare a patch. Just tell me to do so.

Anyway I wonder how ant devs do compile ant?

Sincerly
Marc Weber

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to figure out what is in my class path?

2008-11-24 Thread dave.alvarado
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 understand to use the project.class.path as its 
classpath?

 - Dave


>  ---Original Message---
>  From: Marc Weber <[EMAIL PROTECTED]>
>  Subject: Re: How to figure out what is in my class path?
>  Sent: Nov 24 '08 16:56
>  
>  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 ...
>  >
>  >   
>  > 
>  > 
>  > 
>  > 
>  >   
>  >
>  > Not quite sure the right way to debug this.  Thanks, - Dave
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  
>  That's a bug I've posted some days ago. The solution is to add the
>  classpath in the build.xml file manually after (after )
>  
>  
>  ${junit}/junit.jar is your junit.jar file
>  
>  sed command:
>  sed -i 's@@ location="${junit}/junit.jar"/>@' build.xml
>  
>  
>  Hopefully someone with more knowledge about the ant build system can add
>  a one line fix so that this can be configured by -D or by
>  bulid.properties.
>  
>  If you want I can prepare a patch. Just tell me to do so.
>  
>  Anyway I wonder how ant devs do compile ant?
>  
>  Sincerly
>  Marc Weber
>  
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>  
>  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to figure out what is in my class path?

2008-11-24 Thread David Weintraub
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 24, 2008 at 1:03 PM,  <[EMAIL PROTECTED]> wrote:
> 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 understand to use the project.class.path as its 
> classpath?
>
>  - Dave
>
>
>>  ---Original Message---
>>  From: Marc Weber <[EMAIL PROTECTED]>
>>  Subject: Re: How to figure out what is in my class path?
>>  Sent: Nov 24 '08 16:56
>>
>>  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 ...
>>  >
>>  >   
>>  > 
>>  > 
>>  > 
>>  > 
>>  >   
>>  >
>>  > Not quite sure the right way to debug this.  Thanks, - Dave
>>  >
>>  > -
>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>  That's a bug I've posted some days ago. The solution is to add the
>>  classpath in the build.xml file manually after (after )
>>  
>>
>>  ${junit}/junit.jar is your junit.jar file
>>
>>  sed command:
>>  sed -i 's@@> location="${junit}/junit.jar"/>@' build.xml
>>
>>
>>  Hopefully someone with more knowledge about the ant build system can add
>>  a one line fix so that this can be configured by -D or by
>>  bulid.properties.
>>
>>  If you want I can prepare a patch. Just tell me to do so.
>>
>>  Anyway I wonder how ant devs do compile ant?
>>
>>  Sincerly
>>  Marc Weber
>>
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to figure out what is in my class path?

2008-11-24 Thread dave.alvarado
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-checks.xml:41:
 DEBUG: project.class.path.property =
"${project.class.path}"

Am I using the right syntax for printing this out?  Why isn't evaluating what 
is in the {}'s?

Thanks, - Dave


>  ---Original Message---
>  From: David Weintraub <[EMAIL PROTECTED]>
>  Subject: Re: How to figure out what is in my class path?
>  Sent: Nov 24 '08 18:11
>  
>  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 24, 2008 at 1:03 PM,  <[EMAIL PROTECTED]> wrote:
>  > 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 understand to use the project.class.path as its 
> classpath?
>  >
>  >  - Dave
>  >
>  >
>  >>  ---Original Message---
>  >>  From: Marc Weber <[EMAIL PROTECTED]>
>  >>  Subject: Re: How to figure out what is in my class path?
>  >>  Sent: Nov 24 '08 16:56
>  >>
>  >>  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 ...
>  >>  >
>  >>  >   
>  >>  > 
>  >>  > 
>  >>  > 
>  >>  > 
>  >>  >   
>  >>  >
>  >>  > Not quite sure the right way to debug this.  Thanks, - Dave
>  >>  >
>  >>  > -
>  >>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>  That's a bug I've posted some days ago. The solution is to add the
>  >>  classpath in the build.xml file manually after (after  id="classpath">)
>  >>  
>  >>
>  >>  ${junit}/junit.jar is your junit.jar file
>  >>
>  >>  sed command:
>  >>  sed -i 's@@ location="${junit}/junit.jar"/>@' build.xml
>  >>
>  >>
>  >>  Hopefully someone with more knowledge about the ant build system can add
>  >>  a one line fix so that this can be configured by -D or by
>  >>  bulid.properties.
>  >>
>  >>  If you want I can prepare a patch. Just tell me to do so.
>  >>
>  >>  Anyway I wonder how ant devs do compile ant?
>  >>
>  >>  Sincerly
>  >>  Marc Weber
>  >>
>  >>  -
>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>  
>  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to figure out what is in my class path?

2008-11-24 Thread David Weintraub
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:











PATH = "${project.class.path.property}"




(I created three jar files in the jardir directory called one.jar,
two.jar, three.jar)

Here's the output:

test:
 [echo] PATH =
"/solbright/tools/build/temp/jardir/one.jar:/solbright/tools/build/temp/jardir/three.jar:/solbright/tools/build/temp/jardir/two.jar:/solbright/tools/build/temp/test/one/one.jar:/solbright/tools/build/temp/test/two/two.jar"
 [echo] Setting path

All five jar files show up in my classpath

--
David Weintraub
[EMAIL PROTECTED]



On Mon, Nov 24, 2008 at 1:37 PM,  <[EMAIL PROTECTED]> wrote:
> 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-checks.xml:41:
>  DEBUG: project.class.path.property =
> "${project.class.path}"
>
> Am I using the right syntax for printing this out?  Why isn't evaluating what 
> is in the {}'s?
>
> Thanks, - Dave
>
>
>>  ---Original Message---
>>  From: David Weintraub <[EMAIL PROTECTED]>
>>  Subject: Re: How to figure out what is in my class path?
>>  Sent: Nov 24 '08 18:11
>>
>>  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 24, 2008 at 1:03 PM,  <[EMAIL PROTECTED]> wrote:
>>  > 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 understand to use the project.class.path as its 
>> classpath?
>>  >
>>  >  - Dave
>>  >
>>  >
>>  >>  ---Original Message---
>>  >>  From: Marc Weber <[EMAIL PROTECTED]>
>>  >>  Subject: Re: How to figure out what is in my class path?
>>  >>  Sent: Nov 24 '08 16:56
>>  >>
>>  >>  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 ...
>>  >>  >
>>  >>  >   
>>  >>  > 
>>  >>  > 
>>  >>  > 
>>  >>  > 
>>  >>  >   
>>  >>  >
>>  >>  > Not quite sure the right way to debug this.  Thanks, - Dave
>>  >>  >
>>  >>  > -
>>  >>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  >>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>  >>
>>  >>  That's a bug I've posted some days ago. The solution is to add the
>>  >>  classpath in the build.xml file manually after (after > id="classpath">)
>>  >>  
>>  >>
>>  >>  ${junit}/junit.jar is your junit.jar file
>>  >>
>>  >>  sed command:
>>  >>  sed -i 's@@> location="${junit}/junit.jar"/>@' build.xml
>>  >>
>>  >>
>>  >>  Hopefully someone with more knowledge about the ant build system can add
>>  >>  a one line fix so that this can be configured by -D or by
>>  >>  bulid.properties.
>>  >>
>>  >>  If you want I can prepare a patch. Just tell me to do so.
>>  >>
>>  >>  Anyway I wonder how ant devs do compile ant?
>>  >>
>>  >>  Sincerly
>>  >>  Marc Weber
>>  >>
>>  >>  -
>>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>>  >>
>>  >>
>>  >
>>  > -
>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>  >
>>  >
>>
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECT

RE: Running exec tast

2008-11-24 Thread Rez

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 <[EMAIL 
PROTECTED]>:> >> > Hi> >> >> > I can run the below command from a Windows cmd 
line just fine> > cvs -f stat | grep "Repository revision" | gawk '{print $4 " 
" $3}'> > but now I'd like to add it to my build.xml file in a target> >> > 

> >> > I've changed the double quotes with " and single quotes 
with ' and every other combination imaginable and I still get errors. Please 
help.> >> > Hi,> > I think you need to experiment with redirectors[1] to see if 
you can> accomplish what you're trying to do. You're trying to use shell 
pipes,> which ANT doesn't know about. You need to explicitly send the output> 
of one  to another one. From my reading of the manual, I think> this 
should be possible.> > Cheers,> > James> > [1] 
http://ant.apache.org/manual/CoreTypes/redirector.html> > 
-> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL 
PROTECTED]> 
_
Color coding for safety: Windows Live Hotmail alerts you to suspicious email.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008
 

Re: How to figure out what is in my class path?

2008-11-24 Thread Peter Reilly
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 command line.



   

   
   


Peter


On Mon, Nov 24, 2008 at 4:40 PM,  <[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 ...
>
>  
>
>
>
>
>  
>
> Not quite sure the right way to debug this.  Thanks, - Dave
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to figure out what is in my class path?

2008-11-24 Thread dave.alvarado
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=$TIER 
-Dwlshosturl=$hosturl -Dwlsuser=$username -Dwlspwd=$password -Dpwd=$pwd $target

but my condition is still failing.  Does anyone know a smaller test I can run 
to troubleshoot this problem further?

Thanks, - Dave



>  ---Original Message---
>  From: Peter Reilly <[EMAIL PROTECTED]>
>  Subject: Re: How to figure out what is in my class path?
>  Sent: Nov 24 '08 22:03
>  
>  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 command line.
>  
>  
>  
>     
>  
>     
>     
>  
>  
>  Peter
>  
>  
>  On Mon, Nov 24, 2008 at 4:40 PM,  <[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 ...
>  >
>  >  
>  >
>  >
>  >
>  >
>  >  
>  >
>  > Not quite sure the right way to debug this.  Thanks, - Dave
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>  
>  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]