You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ying Wang <yi...@hawaii.edu> on 2002/04/26 23:50:44 UTC

How to avoid to compile old java file?

Hi All,
  I have several questions.

1. Our build will take 10 more mins. So when I change some java file, I
want to rebuild project without recompile all the other old files. How to
make it?

2.The scope of properties: Can I override a property in same xml file? How
about override in different xml file when using <ant>.

Any help is appreciated!

Ying



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to avoid to compile old java file?

Posted by Diane Holt <ho...@yahoo.com>.
--- Ying Wang <yi...@hawaii.edu> wrote:
> 1. Our build will take 10 more mins. So when I change some java file, I
> want to rebuild project without recompile all the other old files. How
> to make it?

You don't need to do anything -- that's its default behaviour, to only
recompile source files that are out-of-date with their corresponding class
files.

> 2.The scope of properties: Can I override a property in same xml file?

You can, but only by devious means, and doing it that way is heavily
discouraged.

> How about override in different xml file when using <ant>.

Yes -- either include a nested <property> element in your <ant> task, or
set 'inheritAll="false"' and define the property via the <property> task
in the other build file.

Diane


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>