ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: skipping javac task
Date Tue, 05 Feb 2002 09:22:49 GMT
On Mon, 4 Feb 2002, Stephen Huey <> 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
> 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: <>.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message