ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Schmitt" <sschm...@raleigh.ibm.com>
Subject Re: Problem with classpath
Date Thu, 09 Nov 2000 08:21:08 GMT
Thanks
but can I refer to this path from subbuild files. Some parts of the build
have their own build.xml and they need the classpath to.
Yours
Stefan


----- Original Message -----
From: "Nico Seessle" <Nico.Seessle@epost.de>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, November 09, 2000 9:16 AM
Subject: Re: Problem with classpath


> You can do this like ant in it's own buildfile (also in ant's buildfile it
> looks "funny"):
>
> 1. Use <path...> outside any of your targets
>
> <path id="myclasspath"/
>        <pathelement path="${Source.libdir}"/>
>        <pathelement location="xerces-1.1.3.jar"/>
>        <pathelement location="xalan_1_1_D01.jar"/>
>        <pathelement location="castor.jar"/>
>        <pathelement location="jaxp.jar"/>
>        <fileset dir="${Source.libdir}">
>            <include name="**.*.jar"/>
>        </fileset>
> </path>
>
> 2. Use this as a reference for your classpath
>
> <javac ...>
>   <classpath refid="myclasspath"/>
> </javac>
>
> May contain errors since hacked into the mail directly, but I think it
does
> not :-)
>
> Nico
>
> ----- Original Message -----
> From: "Stefan Schmitt" <sschmitt@raleigh.ibm.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Thursday, November 09, 2000 8:05 AM
> Subject: Re: Problem with classpath
>
>
> > My Problem is that I want to define a classpath for the whole project.
The
> > MyClass class copies some jarfiles and some source code to the build pc.
I
> > need to but the Jar files to my classpath but how can I make this inside
> of
> > my build.xml? I read the manual but this confuses me and I tried it the
> way
> > which I showed in my previous mail.
> > Yours
> > Stefan S
> >
>
>
>


Mime
View raw message