ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: Javac task questions: deprecated file copying?
Date Sun, 23 Jul 2000 14:35:43 GMT
Laird,

Use an include in Javac to select only java files
<javac ...>
   <include name="**/*.java"/>
</javac>

That should eliminate the copying of support files and the warning.

BTW, How would people feel about actually removing this behaviour, now that
we have a release?

Conor


> -----Original Message-----
> From: Laird Nelson [mailto:ljnelson@unix.amherst.edu]
> Sent: Saturday, 22 July 2000 5:56
> To: ant-dev@jakarta.apache.org
> Subject: Javac task questions: deprecated file copying?
>
>
> I'm having a bit of trouble with the javac task.
>
> As I understand it, if I invoke it at the top of a source tree,
> it will comb
> through the directory tree, javac *.java in there, will find every other
> file in there and add it to a list of files to be copied, and will finally
> ensure that both the resulting .class files and the "support"
> files will be
> copied to destdir.
>
> When it does this, it tells me that this behavior is deprecated, and then
> proceeds to do it anyway.  That's fine that it's deprecated; I think the
> copying of extra support files automatically is silly and I want
> to turn it
> off.  However, I can't seem to see a way to turn it off.  The excludes
> attribute does not seem to prevent the javac task from picking extra stuff
> up.
>
> Additionally, on a slightly different topic, although CVS files
> are excluded
> by default, files found in, e.g., CVS/Base are not.  Since
> anytime you do a
> cvs edit (I think) a copy of the file being edited ends up in
> CVS/Base, then
> that file gets included in the compile run.  Ick.  The workaround is to do
> excludes="**/CVS/**".
>
> Thanks,
> Laird
>
>


Mime
View raw message