|
Eclipse JDT Release 3.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJarBuilder
A JAR builder can be used to add elements to a JAR file which is about to be build.
The protocol defined by this interface is:
In order to provide backward compatibility for clients of IJarBuilder
, extension
interfaces are used to provide a means of evolution. The following extension interfaces exist:
IJarBuilderExtension
since version 3.5 introducing
the following functions:
JarPackageData
Method Summary | |
---|---|
void |
close()
Called when building of the JAR finished. |
String |
getId()
Returns the unique id of this builder |
IManifestProvider |
getManifestProvider()
Returns the manifest provider to build the manifest |
void |
open(JarPackageData jarPackage,
Shell shell,
MultiStatus status)
Called when building of the JAR starts |
void |
writeArchive(ZipFile archive,
IProgressMonitor monitor)
Add the given archive to the archive which is about to be build |
void |
writeFile(IFile resource,
IPath destinationPath)
Add the given resource to the archive at the given path |
Method Detail |
---|
String getId()
IManifestProvider getManifestProvider()
void open(JarPackageData jarPackage, Shell shell, MultiStatus status) throws CoreException
jarPackage
- the package to buildshell
- shell to show dialogs, null if no dialog must be shownstatus
- a status to use to report status to the user
CoreException
- thrown when the JAR could not be openedvoid writeFile(IFile resource, IPath destinationPath) throws CoreException
resource
- the file to be writtendestinationPath
- the path for the file inside the archive
CoreException
- thrown when the file could not be writtenvoid writeArchive(ZipFile archive, IProgressMonitor monitor)
archive
- the archive to addmonitor
- a monitor to report progress tovoid close() throws CoreException
CoreException
- thrown when the JAR could not be closed
|
Eclipse JDT Release 3.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |