Re: Jar Target
Vitezslav Stejskal <[email protected]> Thu, 21 Aug 2003 11:19:57 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Chris, I will try to answer your question since I am the new owner of jarpackager module now :-(. Please keep in mind that I don't know much about the module yet so my answer probably will not be really useful. Chris Webster wrote: > > Assume a user creates a java project where there should be two outputs > one containing the implementation and the other containing the > interfaces. Also, assume that the compiled classes build step must be > preceeded by a build step which generates interfaces based on the > implementation classes. > > com > xyz > Impl.class > Interface.class (generated from Impl during build) > > Will the jar target support the ability to filter the single compiled > classes to produce the jar files below (please describe how one would > do this through the user interface and java interface)? IMO this will be possible when you manually set up jar filters. In generall you can define the contents of jar archive on the files level (there is some UI showing the tree of sources and built class files accompanied by checkboxes allowing you to select what exactly you want to pack in the jar. For details see the http://jarpackager.netbeans.org/UISpec.html (Contenets customization Editor). I don't kown how to do this using jarpackager API, but there seems to be promising page on http://www.netbeans.org/download/prj40_prototype/javadoc/JarpackagerAPI/index.html (find the link to 'specify the contents of jars'). -vita