You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Anoop Ranganath <An...@factory23.com> on 2000/09/21 17:22:36 UTC

javac and unjar questions

I've got two questions.  The first is regarding javac.  Is it possible to
specify attributes so that javac only compiles those source files that have
a newer timestamp than their class files.  (only compile changed files)

And also, it is possible to use unjar to only extract one file?

Thanks,

Anoop


Re: javac and unjar questions

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "AR" == Anoop Ranganath <An...@factory23.com> writes:

 AR> Is it possible to specify attributes so that javac only compiles
 AR> those source files that have a newer timestamp than their class
 AR> files.  (only compile changed files)

This is exactly how javac works - just make sure your classes are
organized in a directory structure that matches your package structure
and point the task to the root of it. I.e. class a.b.C must live in
${srcdir}/a/b/C.java.

 AR> And also, it is possible to use unjar to only extract one file?

No.

Stefan