[jboss-dev-forums] [Embedded JBoss Development] - Re: SHRINKWRAP-104: Empty Directories
aslak
do-not-reply at jboss.com
Mon Dec 7 03:06:39 EST 2009
What if we drop the Asset all together and make a add method like:
| archive.add(Path)
|
Maybe we then also have to support all the convenience overloads like ?
| addManifestResource(Path)
| addWebResource(Path)
| etc..
|
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=4269238#4269238
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269238
More information about the jboss-dev-forums
mailing list