ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject RE: Newbie Question
Date Sun, 24 Sep 2000 09:24:48 GMT

> -----Original Message-----
> From: J Kary []
> Sent: Sunday, 24 September 2000 6:01
> Subject: Newbie Question
> app/
> app/
> app/pkg1/
> app/pkg1/
> How do I tell ANT to just build the core files?  Does ANT take care of
> depends like:

Add an include element to the javac task like this
     <javac srcdir="app" destdir="build">
       <include name="*.java"/>

This will only include those files in the unnamed package.

> depends on pkg1/  AND
> pkg1/ depends on
> In the above case you need to do a 'javac
> pkg1/
> '

ant won't take care of it but the underlying compiler used by ant should. By
that I mean the compiler will find pkg1/ when compiling and compile it if necessary. It will not, however,
necessarily recompile if pkg1/ is updated.

I should also add that the Java language spec does not encourage the use of
the unamed package.

"Unnamed packages are provided by the Java platform principally for
convenience when developing small or temporary applications or when just
beginning development. "

Good Luck

View raw message