ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: include and exclude files
Date Thu, 09 Nov 2000 03:19:46 GMT

Not sure if my yahoo mail is getting weird (or maybe it's just this dumb
NT), but your message came thru a bit scrambled, so I hope I got what you
were actually asking...

To use a file-list for included/excluded files, you need to specify the
"includesfile" or "excludesfile" attributes, not "includes"/"excludes".

But for your case, there really isn't a need to do it as an external file.
Just use: excludes="**/test/**", and you should be fine.

To compile an individual file (or sequence of individual files), do:

  <javac ...(attributes)... >
    <include name="com/pkg/"/>
    <include name="com/pkg/"/>
  <javac ...(attributes)... >
    <include name="com/pkg/**"/>
(Note: Since and have already been compiled, you
don't need to specifically exclude them from the final wildcarded big

Hope this helps,

--- Jessica Tsou <> wrote:
> To whom it may concern,
> I would like to know more about include and exclude files in "java".
> The documentation that I've read through so far has not been helpful.
> All the changes that I've included in the mol file didn't seem to have
> taken
> place:
> 	<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>
> where test. exclude looks like:
> $ more test. exclude
> **/test*.java
> Could it be that I placed this like in the wrong directory?
> Also, is it possible to compile one file at a time in a given directory:
> Ex.
> /directory
> I would like to compile "" first, then "" then the
> rest
> of the java files.
> I think the default for "java" is to compile from and on.
> Thank You!
> Jessica


Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.

View raw message