This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
if there is a jar file in folder that represents folder fileset then the fileset contains files -from- the jarfile instead of just containing the jar file itself
Sure, the FileObject(*.jar).isFolder() == true. I think we can fix this, but is it ok to not be able to use *.jar files as a base of FolderFileSet?
right, it should be fixed at a more general level as for the jar being a base: I do not see any requirement for this but I am reluctant to say explicitly that it is not needed ;-) I think that you should make it clear in documentation whether a non-folder can be used as a base. If the FileObject(*.jar).isFolder() == true does not get fixed(!!) you need to specify that explicitly in your docs
It can this be fixed at least for jar files that are not base folders. If you create a folder fs with jar as base you probably know what you are doing so this is ok for me (I was not asking for fixing that).
As a consequence of this bug, web modules which contain a jar file in WEB-INF/lib, can not be built. That is a showstopper for us. Therefore, I think issue 34251 should be addressed promptly. As for the jar being a base: I think it should be possible to use a jar as a base of a fileset, and I don't think having FileObject(*.jar).isFolder() == false would prevent that. The same mechanism as in NB 3.5 code base should be used, i.e. I use the root fileobject of the corresponding JarFileSystem as the root of the fileset. I will write a more concrete suggestion to report 34251.
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped.
Marking issue as VERIFIED --->
---> CLOSED