On Mon, 4 Feb 2002, Stephen Huey <[EMAIL PROTECTED]> wrote:
> <javac  srcdir="c:/clients/fouroaks/parking"
>         classpath="c:/clients" >
>       <include name="**/*.java"/>
> </javac>

The <include> element is redundant, you don't need it, this is what
<javac> uses by default.

You don't tell <javac> where it is supposed to place the compiled
classes.  Guessing from the <jar> task you give, you are missing
destdir="${build}/parking".
 
> However, it screams on that one, too.

What does it say?

> How do we tell it to explicitly compile a certain file (and then
> have it automatically pay attention to only those other java files
> that it needs to)?

How would you do that on the command line?  The "explicitly compile a
certain file" part is clear to me - in Ant all you have to do is to
make sure that the source is newer than the .class and that Ant knows
where to look for what.  The "automatically pay attention" part is
something that probably doesn't work.

If using <javac> as it is (without trying the trick you've explained)
isn't good enough for some reason (and I'd like to know that reason),
try combining it with Ant's optional <depend> task or take a look at
the <javamake> task listed here: <http://jakarta.apache.org/ant/external.html>.

Stefan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to