|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.server.core.util.PublishUtil
public final class PublishUtil
Utility class with an assortment of useful file methods.
This class provides all its functionality through static members. It is not intended to be subclassed or instantiated.
Method Summary | |
---|---|
static IStatus[] |
deleteDirectory(java.io.File dir,
IProgressMonitor monitor)
Utility method to recursively delete a directory. |
static IStatus[] |
publishDelta(IModuleResourceDelta[] delta,
IPath path,
IProgressMonitor monitor)
Handle a delta publish. |
static IStatus[] |
publishDelta(IModuleResourceDelta delta,
IPath path,
IProgressMonitor monitor)
Handle a delta publish. |
static IStatus[] |
publishFull(IModuleResource[] resources,
IPath path,
IProgressMonitor monitor)
Publish the given module resources to the given path. |
static IStatus[] |
publishSmart(IModuleResource[] resources,
IPath path,
IPath[] ignore,
IProgressMonitor monitor)
Smart copy the given module resources to the given path. |
static IStatus[] |
publishSmart(IModuleResource[] resources,
IPath path,
IProgressMonitor monitor)
Smart copy the given module resources to the given path. |
static IStatus[] |
publishZip(IModuleResource[] resources,
IPath path,
IProgressMonitor monitor)
Creates a new zip file containing the given module resources. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IStatus[] deleteDirectory(java.io.File dir, IProgressMonitor monitor)
dir
- a directorymonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
public static IStatus[] publishSmart(IModuleResource[] resources, IPath path, IProgressMonitor monitor)
resources
- an array of module resourcespath
- an external path to copy tomonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
public static IStatus[] publishSmart(IModuleResource[] resources, IPath path, IPath[] ignore, IProgressMonitor monitor)
resources
- an array of module resourcespath
- an external path to copy toignore
- an array of paths relative to path to ignore, i.e. not delete or copy overmonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
public static IStatus[] publishDelta(IModuleResourceDelta[] delta, IPath path, IProgressMonitor monitor)
delta
- a module resource deltapath
- the path to publish tomonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
public static IStatus[] publishDelta(IModuleResourceDelta delta, IPath path, IProgressMonitor monitor)
delta
- a module resource deltapath
- the path to publish tomonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
public static IStatus[] publishFull(IModuleResource[] resources, IPath path, IProgressMonitor monitor)
resources
- an array of module resourcespath
- a path to publish tomonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
public static IStatus[] publishZip(IModuleResource[] resources, IPath path, IProgressMonitor monitor)
resources
- an array of module resourcespath
- the path where the zip file should be createdmonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |