ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elizabeth Cooper <ecoo...@ergotech.com>
Subject Correction ... Re: Passing a fileset into javac
Date Thu, 17 Oct 2002 00:17:11 GMT
{ I made an error in the pathconvert example, now fixed }

The simplest way to pass a refid of a fileset to javac is:

1. create a fileset (with an id)
2. use pathconvert on the fileset (use the refid). The filelist created 
with the pathconvert can have an id.
3. use this filelist id in javac.

For example:

<fileset id="my.file.set" dir="${source}">
    <include name=....>
    <exclude name=....>
    .... etc.
</fileset>

<pathconvert pathsep="," property="my.file.list" refid="my.file.set">
          <map from="${basedir}${file.separator}${source}${file.separator}" 
to=""/>
  </pathconvert>

<javac
          srcdir="${source}"
          destdir="${build}"
          debug="on"
          includes="${my.file.list}" >
          <classpath>
               <pathelement path="${my.classpath}"/>
          </classpath>
</javac>

Does this help?

At 07:54 PM 10/16/2002 -0400, you wrote:
>Ick :-) I think I'd rather look at patching the javac task to inherit
>fileset's refid attribute if that's viable...
>
>L.
>
>On 10/16/02 3:36 PM, "Dominique Devienne" <DDevienne@lgc.com> wrote:
>
> > You mean using <DEFANGED_script>? ;-) --DD
> >
> > -----Original Message-----
> > From: Laurie Harper [mailto:zodiac@holoweb.net]
> > Sent: Wednesday, October 16, 2002 2:28 PM
> > To: Ant Users List
> > Subject: Re: Passing a fileset into javac
> >
> > Is there a way to get the base directory used in declaring the fileset from
> > a fileset reference? (I think I know the answer to that but I thought I'd
> > ask :-)
> >
> > --
> > 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>


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