ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Cody <paul.c...@lucida.com>
Subject RE: how to include none .class files with task javac?
Date Mon, 11 Mar 2002 20:43:59 GMT

> 
> <copy todir="../dest/dir" > 
> 	<fileset dir="src_dir" excludes="**/*.java"/> 
> </copy> 
> 
> How do I avoid copying empty directories with no resource files?
> 

See Erik's message, and use <include> rather than 'excludes' attribute; it's
is going to be alot more maintainable over the long run:

<copy todir="${classes.dir}">
  <fileset dir="${src.dir}">
    <include name="**/*.properties"/>
    <include name="**/*.whatever-else-you-want-here"/>
  </fileset>
</copy>

--
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