|
Eclipse JDT Release 3.6 |
|||||||||
| 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 opened
void 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 written
void writeArchive(ZipFile archive,
IProgressMonitor monitor)
archive - the archive to addmonitor - a monitor to report progress to
void close()
throws CoreException
CoreException - thrown when the JAR could not be closed
|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.