Steve Appling wrote:
I have updated the copy branch.
Completed:
* Unit tests for BreadthFirstDirectoryWalker and CopyVisitor
* Fixed error path for CopyVisitor and CopySpecImpl.filter()
* You can use single files (not just directories) as sources. I did
not make
a special attribute for a single target with a rename.
* Changed the signature of the CopySpec.from methods to work like (and
delegate to) Project.file
* Removed CopySpecImpl's use of Ant
* Changed PatternMatcher to Spec<RelativePath>
This all looks good. I'll apply it to the trunk if you think it's ready.
I'm still not sure about adding Project.copy(). It feels out of place
there. Maybe a better place for it would be on File and/or FileCollection.
I did not do the following:
* Reuse or move walker/pattern classes. While I fully intended these
to be
re-usable, I think it might be best to only use them for the Copy task
in 0.7.
I would prefer to use any remaining time before 0.7 to look into
making use of
Copy.didWork to set the appropriate onlyIf for the JavaPlugin tasks.
We can make
better use of these classes in 0.8.
I might find some time to move these around.
Adam
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email