In a nutshell, using
Ant, I can't seem to figure out copying everything in a directory to another directory, while excluding a certain subdirectory in the source, or originating, directory.
In other words, if I have the following directory structure
I'd like to copy everything inside the origin directory to a destination directory, excluding subdirectory1, such that the contents of the destination directory would look like
Note that the origin directory might dynamically contain many other subdirectories and files that I'd also want copied. The subdirectory that I don't want copied is always known.
I can only seem to figure out copying everything over. I realize I could just copy everything and then delete what's not wanted, but that seems silly.
I figured I'd surely be able to figure out specifying a fileset to exclude certain subdirectories, but I can't. I was hoping that the following fileset would work, but it doesn't - it just includes everything, including the excluded subdirectory.
Any ideas?