You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Laird Nelson <lj...@unix.amherst.edu> on 2000/07/21 21:56:18 UTC

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


RE: Javac task questions: deprecated file copying?

Posted by Jimmy Sieben <ji...@utdallas.edu>.
At 09:35 AM 7/23/2000, you wrote:
>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?

+1 from me
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Jimmy Sieben <> jimmys@utdallas.edu <> EvlG@IRC <> Young Game Designer |
| ICQ UIN: 650255 <> Most things suck, thats what makes some things rock |
| Homepage: http://www.utdallas.edu/~jimmys/                             |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+


RE: Javac task questions: deprecated file copying?

Posted by do...@mad.scientist.com.
On Mon, 24 Jul 2000, Conor MacNeill wrote:

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

very very good idea :P

Cheers,

Pete

*--------------------------------------------------*
| Latrobe University,     |                        |
| Bundoora, Australia     | Does the name 'Pavlov' |
| Office: PW220           |    ring a bell ?       |
| Ex: 2503                |                        |
*--------------------------------------------------*


Re: Javac task questions: deprecated file copying?

Posted by James Duncan Davidson <du...@x180.com>.
on 7/23/00 7:35 AM, Conor MacNeill at conor@m64.com wrote:

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

Go for it.. Yank out the auto copy.

.duncan


RE: Javac task questions: deprecated file copying?

Posted by Barrie Treloar <Ba...@camtech.com.au>.
On Mon, 24 Jul 2000, Conor MacNeill wrote:

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

+1 for me.

Barrie
--
Barrie Treloar
____________________________________________________________________

  Barrie Treloar                      Phone: +61 8 8303 3300
  Senior Analyst/Programmer           Fax:   +61 8 8303 4403 
  Electronic Commerce Division        Email: barrie@camtech.com.au
  Camtech (SA) Pty Ltd                http://www.camtech.com.au
 --- Level 8, 10 Pulteney Street, Adelaide SA 5000, Australia. ---
____________________________________________________________________



RE: Javac task questions: deprecated file copying?

Posted by Conor MacNeill <co...@m64.com>.
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
>
>