ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: Newbie Question
Date Thu, 03 May 2001 19:53:21 GMT
----- Original Message ----- 
From: "David Scassa" <dscassa@journee.com>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, May 03, 2001 7:42 PM
Subject: Newbie Question


> I know how to exclude a specific file from the ANT java compile function,
> but how do I exclude an entire subdirectory <recursively>?
> 
> <target name="compile" depends="prepare">
> <javac srcdir="${sourceDir}"
> destdir="${outputDir}/classesMain" debug="on" deprecation="off"
> optimize="on">
> <include name="**/*.java"/>
> <exclude name="**/ContextType.java"/>
> <exclude name="**/FakeService.java"/>
> <exclude name="**/Race.java"/>
> <exclude name="**/JavadocTest.java"/>
> <exclude name="**/cpex/*.*"/>     <!---This does not
> work -->
> </javac>
> </target>

"**/cpex/**" should work for you. 

Nico



Mime
View raw message