RE: appending to classpath

2008-10-25 Thread Shawn Castrianni
You are almost correct. Just change your nested classpath element to a path element. --- Shawn Castrianni -Original Message- From: Brendan Miller [mailto:[EMAIL PROTECTED] Sent: Saturday, October 25, 2008 11:49 PM To: Ant Users List Subject: appending to classpath I have a ...

Re: ant default classpath

2008-10-25 Thread David Weintraub
Well, Ant is a Java project and does set a classpath for itself to launch. Try this: Classpath = "${ENV.CLASSPATH}" If it prints out "Classpath = "${ENV.CLASSPATH}"", then no classpath is set when ant is running. Also see if there is anything in the $ANT_HOME/lib dir

Re: appending to classpath

2008-10-25 Thread David Weintraub
Once you set a reference or property, you can't really change it. My suggestion is to use macros and pass your classpath as a parameter to the macro. Take a look at the Macrodef task , and take a look how is set. This is how you can pass your c

appending to classpath

2008-10-25 Thread Brendan Miller
I have a ... that I use as a class path via refid="myid" for a couple of tasks. For one task I need to add a couple of path elements to the path before passing it to my task. So I have something like ... So, basically, I'm trying to add to the task before passing it in. How do I do

RE: path classpath

2008-10-25 Thread Martin Gainty
you can assume path is used for locating binaries and classpath is for locating classes/jars (except if otherwise specified in the ant javadoc for that task..) Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachmen

Re: path classpath

2008-10-25 Thread Brendan Miller
I meant the and tags in ant, not the env vars. I guess that makes the same distinction though? On Fri, Oct 24, 2008 at 5:42 PM, Martin Gainty <[EMAIL PROTECTED]> wrote: > > path env var is location for binaries..classpath env var is location for Java > classes and Java jars > > Martin > ___

Re: ant default classpath

2008-10-25 Thread Brendan Miller
I'm on Linux. I don't have CLASSPATH set in my shell. It sure doesn't look like it's getting set in elsewhere, but the build environment I'm working in is complicated, so maybe I'm missing something. Are you *sure* that Ant doesn't try to construct a default classpath from sources other than the C

Re: ant default classpath

2008-10-25 Thread Mark Salter
Brendan Miller wrote: > In a build.xml I have, I have a javac task that I perfrom where I > don't explicitly pass it any classpath. Yet, when I run ant -v, I get > an enourmous classpath. What gives? > > How does ant construct it's default classpath? Is this documented > anywhere? I didn't see any