--- comp boy <[EMAIL PROTECTED]> 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

=====
([EMAIL PROTECTED])



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

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

Reply via email to