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.set" 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" <[EMAIL PROTECTED]> wrote:
>
> > You mean using <DEFANGED_script>? ;-) --DD
> >
> > -----Original Message-----
> > From: Laurie Harper [mailto:[EMAIL PROTECTED]]
> > 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:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



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

Reply via email to