[jboss-dev-forums] [Embedded JBoss Development] - Re: SHRINKWRAP-104: Empty Directories

ALRubinger do-not-reply at jboss.com
Mon Dec 7 11:57:28 EST 2009


"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#4269397

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269397



More information about the jboss-dev-forums mailing list