ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gurdev Parmar" <gpar...@versant.com>
Subject Re: Path, refid, <src>
Date Fri, 26 Apr 2002 18:14:31 GMT
Thanks Diane,
But did you notice that I had used a <fileset> tag inside
path to describe a set of files?

This is the example that ant documentation gives, on the basis
of which I was working on:
<documentation>
A path-like structure can include a reference to another path-like structure
via nested <path> elements:

    <path id="base.path">
      <pathelement path="${classpath}"/>
      <fileset dir="lib">
        <include name="**/*.jar"/>
      </fileset>
      <pathelement location="classes"/>
    </path>
........................
<project ... >
  <path id="project.class.path">
    <pathelement location="lib/"/>
    <pathelement path="${java.class.path}/"/>
    <pathelement path="${additional.path}"/>
  </path>

  <target ... >
    <rmic ...>
      <classpath refid="project.class.path"/>
    </rmic>
  </target>

  <target ... >
    <javac ...>
      <classpath refid="project.class.path"/>
    </javac>
  </target>
</project>

</documentation>


----- Original Message -----
From: "Diane Holt" <holtdl@yahoo.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Friday, April 26, 2002 11:01 AM
Subject: Re: Path, refid, <src>


> --- Gurdev Parmar <gparmar@versant.com> wrote:
> > Isn't path id supposed to be used to have a template of a set of files?
>
> No, <path> is used to define a path, <fileset> is used to group a set of
> files, and <patternset> is used to define a pattern of includes/excludes
> that can be reused (anchoring it at different base directories).
>
> Diane
>
> =====
> (holtdl@yahoo.com)
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>


--
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