ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: include and exclude files
Date Thu, 09 Nov 2000 09:25:00 GMT
Jessica Tsou <jessicat@gammacomputer.com> wrote:

> 	<target name="compile wrapper" depends="prepare"> 
> 	  <!-- Compile the java code from ${sac} into ${build} --> 
> 	    <java scrim="${wrapper}" bestir="${wrapper}" 
>                  class path="${path}" excludes="test. exclude"/> 
>       </target>

I hope, in reality it reads

 	    <javac scrdir="${wrapper}" destdir="${wrapper}" 
                  classpath="${path}" excludes="test. exclude"/> 

Diane already pointed you to using excludesfile instead of excludes.

> Also, is it possible to compile one file at a time in a given
> directory: Ex.  /directory files1.java files2.java files3.java
> files4.java

> I would like to compile "file3.java" first, then "file4.java" then
> the rest of the java files.

Yes and no.

<javac includes="**/file3.java" />
<javac includes="**/file4.java" />
<javac>

will do, but only if file3.java doesn't depend on any of the other
files (in which case the needed classes will be compiled as well).

> I think the default for "java" is to compile from java1.java and on.

No, the default for *javac* is to compile all four of them at the same
time.

Stefan

Mime
View raw message