ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Schewe <jpsch...@eggplant.mtu.net>
Subject Re: Trouble getting classpath to work...
Date Fri, 08 Dec 2000 04:57:08 GMT
Actually if you read closely you'll see that <pathelement location="..."> is
for both paths and files, while <pathelement path="..."> is for insertting
multiple locations into the current fileset. 

"Michael Farmer" <mfarmer8@bellsouth.net> writes:

> YES! Thanks a million!
> 
> I'm just now getting into ANT. According to the doc, it says I can do the
> <fileset> sub tag in classpath, and it even has an example as such. The doc
> on pathelement is also a little weak, but I assume <pathelement path="..">
> is for PATHS, where <pathelement location=".."> is for files.
> 
> As I think about it, I'm pretty sure I tried what you suggested with the
> binary distribution, but didn't with the one I built myself. Is there any
> reason what I have below shouldn't work?
> 
> Anyway, thanks! great help.
> --michael
> 
> -----Original Message-----
> From: Diane Holt [mailto:holtdl@yahoo.com]
> Sent: Thursday, December 07, 2000 10:28 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: Trouble getting classpath to work...
> 
> 
> Try:
>   <classpath>
>     <pathelement location="${lib.dir}/Vbjorb.jar"/>
>     <pathelement location="${lib.dir}/Vbjapp.jar"/>
>   </classpath>
> 
> Diane
> 
> --- Michael Farmer <mfarmer8@bellsouth.net> wrote:
> > ARGH...
> > I can't figure this out. The following is a javac tag, with a classpath
> > defined for it.
> >
> >     <javac srcdir="${src.dir}"
> > 	       destdir="${class.dir}"
> >
> >
> includes="${idl.class.base.package}/TRIBasicServer/*.java,${idl.class.base.p
> >
> ackage}/TRIDomain/*.java,${idl.class.base.package}/TRIEvent/*.java,${idl.cla
> > ss.base.package}/TRIBasicServer/*.java"
> >            debug="on"
> >            deprecation="off"
> >            optimize="on" >
> > 	  <classpath>
> > 	    <fileset dir="${lib.dir}">
> > 		  <include name="Vbjorb.jar,Vbjapp.jar" />
> > 		</fileset>
> > 	  </classpath>
> >     </javac>
> >
> > And here is the classapth argument sent to the compiler:
> >
> > -classpath
> >
> C:\Projects\Java\classes;C:\bin\jakarta\ant\lib\ANT.JAR;C:\bin\jakarta\ant\l
> >
> ib\JAXP.JAR;C:\bin\jakarta\ant\lib\PARSER.JAR;C:\bin\jdk1.2.2\lib\tools.jar
> >
> > SO, why isn't Vbjorb.jar and Vbjapp.jar not getting added to my
> > classpath
> > parameter for the compiler? I've tried other things as well, all
> > unsuccessfull. For example, I tried...
> >
> > 	<javac ....
> > 		classpath="${lib.dir}/Vbjorb.jar;${lib.dir}/Vbjapp.jar"
> > 	/>
> >
> > I originally tried it all with the binary distribution, then I built it
> > myself and I still get the same thing. Hopefully it's something really
> > simple and I'm just being dumb...
> >
> > --michael
> >
> 
> 
> =====
> (holtdl@yahoo.com)
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
> 

-- 
Jon Schewe | http://eggplant.mtu.net/~jpschewe
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39
NOTE: My first name has no 'h' in it!  Please be observant.


Mime
View raw message