public interface IJarBuilder
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
Modifier and Type | Method and Description |
---|---|
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
|
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 userCoreException
- 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 archiveCoreException
- 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
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.