ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Reddy <prash...@pramati.com>
Subject Re: How to include a single Java file in javac task?
Date Mon, 08 Oct 2007 10:58:40 GMT
Try :
<javac srcdir="rt/src" destdir="${build.classes.dir}">
  <includes name="Crypto.java"/>
</javac>


On Mon, 2007-10-08 at 16:20 +0530, Alexis Votta wrote:
> Currently, my compile target is as follows.
> 
>   <target name="compile">
>     <mkdir dir="${build.classes.dir}"/>
>     <javac srcdir="${src.dir}" destdir="${build.classes.dir}"/>
>   </target>
> 
> So, it compiles everything in ${src.dir}.
> 
> Apart from this I want to add one single Java file to be compiled.
> Therefore, I want:
> 
> 1. All Java files in ${src.dir} to be compiled.
> 2. rt/src/Crypto.java to be compiled.
> 
> How can I do this?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message