"aslak" wrote : What if we drop the Asset all together and make a add method
like:
|
| | archive.add(Path)
| |
@see DirectoryContainer, which has:
container.addDirectory(Path);
| container.addDirectories(Path...);
| container.addDirectory(String);
| container.addDirectories(String...);
All spec archives types bring in DirectoryContainer support.
"aslak" wrote : Path should then probably have a isDirectory method, checking if
it ends with '/' seems to be common. Could add checks to other add methods so you
can't add a Asset to a directory Path, can't get the Asset of a directory path
etc..
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269397#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...