ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: is there any way to modify a classpath that referenced with refid ?
Date Thu, 18 Jul 2002 13:25:42 GMT
On Thu, 18 Jul 2002, Nolan Ring <Nolan.Ring@Sun.Com> wrote:

> I've defined a classpath and assigned it the id "classpath.path" ;
> it's a path that I want to use throughout my buildfile with very
> minor modifications.  What I want to do is exclude a particular jar
> file that would otherwise be included because of the wildcards in
> the original definition.

And you can build compound <path>s:

<path id="path-without-the-jar">
 ...
</path>

<path id="with-the-jar">
  <path refid="path-without-the-jar" />
  <fileset ...>
</path>

and use the first path whenever you want to exclude the extra jar and
the second one where you need it.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message