ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Ant start on a given file
Date Tue, 09 Apr 2002 22:13:11 GMT
--- comp boy <compboy80@hotmail.com> wrote:
> Well I have this part so far:
> <target name="compileStand" depends="init">
> <!-- Compile the java code from ${src} into ${build} -->
> <delete dir="${build}/com"/>
> <javac srcdir="${src}" destdir="${build}" >
> <include name="com/nex/mwt/app/MWTApp.java" />
> </javac>
> </target>
> 
> When this file (com/nex/mwt/app/MWTApp.java) gets compiled I also want
> all the files that this file depends on to also be compiled.
> 
> How can I do this?

Won't a Java compiler do just that -- ie., if MWTApp.java references Foo,
and Foo.class doesn't exist, won't the compiler compile Foo.java (assuming
it can find it) to satisfy its need?

What it won't do is (re-)compile files that depend on MWTApp when
MWTApp.java changes -- for that, see the <depend> task.

Diane

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



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message