I'm resending this; the original note bounced back due to a problem with my
ISP.

Rhino

----- Original Message ----- 
From: "Rhino" <[EMAIL PROTECTED]>
To: "Ant Users List" <user@ant.apache.org>
Sent: Tuesday, March 29, 2005 8:22 PM
Subject: Re: setting project classpath from a task


>
> ----- Original Message ----- 
> From: "Bridges, Ed NYC" <[EMAIL PROTECTED]>
> To: <user@ant.apache.org>
> Sent: Tuesday, March 29, 2005 10:47 AM
> Subject: setting project classpath from a task
>
>
> > Hi,
> >
> > I have a task that maintains dependent jars for a project, and would
like
> to
> > be able to set a classpath from within the task that the project would
use
> > for compiling.
> >
> > I've tried declaring a <path> element with a refid, and then setting the
> > value for that refid from within the task by using
project.addReference()
> > and the refid name.
> >
> > I've also tried declaring a <property> element, and assigning that by
name
> > and by refid, to no avail.
> >
> > I'm kind of at a loss for how to do this.  Please advise.
> >
>
> This excerpt is from a build file that I developed for my current project;
> it works fine.
>
> <path id="udf.class.path">
>
> <pathelement location="${jdbc.dir}/db2java.zip"/>
>
> <pathelement location="${jdbc.dir}/db2jcc.jar"/>
>
> <pathelement location="${jdbc.dir}/db2jcc_license_cu.jar"/>
>
> </path>
>
>
>
> ...
>
>
>
> <target name="Compile" description="Java Compile of UDF.">
>
> <javac srcdir="${src.dir}" destdir="${bin.dir}" compiler="modern"
fork="yes"
>
> includes="${path_Java}/${UDF}.java"
>
> classpathref="udf.class.path"
>
> verbose="no" debug="on" debuglevel="lines,vars,source" deprecation="yes"/>
>
> </target>
>
>
>
> Rhino
>



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.3 - Release Date: 25/03/2005


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

Reply via email to