ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: javac and filesets?
Date Sat, 26 Jan 2002 01:23:23 GMT
Care to share what the problem was?


----- Original Message -----
From: "Donald Mitchell" <Donald.Mitchell@peregrine.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Friday, January 25, 2002 8:07 PM
Subject: RE: javac and filesets?


> I found my problem.
>
> Thanks,
> Don
>
> -----Original Message-----
> From: Donald Mitchell [mailto:Donald.Mitchell@peregrine.com]
> Sent: Friday, January 25, 2002 4:19 PM
> To: 'Ant Users List'
> Subject: javac and filesets?
>
>
> Hi,
>
> I want to use a fileset or patternset to include and exclude files for the
> javac tag, but I don't know how to reference it.  The javadoc page for
javac
> has this comment:
>
> This task forms an implicit FileSet and supports all attributes of
<fileset>
> (dir becomes srcdir) as well as the nested <include>, <exclude> and
> <patternset> elements.
>
> The error I get is:
>
> Class org.apache.tools.ant.types.PatternSet$NameEntry doesn't support the
> nested "patternet" element.
>
> My target looks like this:
>
> <target name="compile">
>    <javac srcdir="${src}"
>       destdir="${build}"
>       excludes="${src.test}"
>       debug="${comp.debug}"
>       failonerror="${comp.failonerror}"
>       deprecation="${comp.deprecation}">
>       <classpath refid="compile.classpath"/>
>       <patternet refid="lib.files"/>
>    </javac>
> </target>
>
> I've tried changing the word "patternset" to "include", but that's not
> allowed.  Any ideas on how I can do this?  I want to use a fileset so I
can
> reference these files in other tasks.
>
> Thanks!
> Don
>
> --
> 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