blob: 7bb3b525e3cbb85531166708f88186ccb78a23c9 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0) on Wed May 14 15:16:12 EDT 2008 -->
<TITLE>
PublishUtil
</TITLE>
<META NAME="date" CONTENT="2008-05-14">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="PublishUtil";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PublishUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/eclipse/jst/server/core/JndiObject.html" title="class in org.eclipse.jst.server.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/eclipse/jst/server/core/RuntimeClasspathProviderDelegate.html" title="class in org.eclipse.jst.server.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/eclipse/jst/server/core/PublishUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="PublishUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.eclipse.jst.server.core</FONT>
<BR>
Class PublishUtil</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.eclipse.jst.server.core.PublishUtil</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>PublishUtil</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
Utility class with an assortment of useful file methods.
<p>
This class provides all its functionality through static members.
It is not intended to be subclassed or instantiated.
</p>
<p>
<b>Note:</b> Adopters should use the equivalent class in
org.eclipse.wst.server.core.util instead. This class will eventually
be deprecated.
</p>
<P>
<P>
<HR>
<P>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#copy(org.eclipse.wst.server.core.model.IModuleResource[], IPath)">copy</A></B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This method only returns a single error in the case of failure. Use publishFull() instead</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;IStatus</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#copyFile(java.io.InputStream, java.lang.String)">copyFile</A></B>(java.io.InputStream&nbsp;in,
java.lang.String&nbsp;to)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Unused - will be removed.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#createZipFile(org.eclipse.wst.server.core.model.IModuleResource[], IPath)">createZipFile</A></B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;zipPath)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new zip file containing the given module resources.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;IStatus[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#deleteDirectory(java.io.File, IProgressMonitor)">deleteDirectory</A></B>(java.io.File&nbsp;dir,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Utility method to recursively delete a directory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#handleDelta(int, IPath, org.eclipse.wst.server.core.model.IModuleResourceDelta)">handleDelta</A></B>(int&nbsp;kind,
IPath&nbsp;path,
<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResourceDelta.html" title="interface in org.eclipse.wst.server.core.model">IModuleResourceDelta</A>&nbsp;delta)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This method only returns a single error in the case of failure. Use publishDelta() instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;IStatus[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#publishDelta(org.eclipse.wst.server.core.model.IModuleResourceDelta[], IPath, IProgressMonitor)">publishDelta</A></B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResourceDelta.html" title="interface in org.eclipse.wst.server.core.model">IModuleResourceDelta</A>[]&nbsp;delta,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle a delta publish.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;IStatus[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#publishDelta(org.eclipse.wst.server.core.model.IModuleResourceDelta, IPath, IProgressMonitor)">publishDelta</A></B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResourceDelta.html" title="interface in org.eclipse.wst.server.core.model">IModuleResourceDelta</A>&nbsp;delta,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle a delta publish.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;IStatus[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#publishFull(org.eclipse.wst.server.core.model.IModuleResource[], IPath, IProgressMonitor)">publishFull</A></B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Publish the given module resources to the given path.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;IStatus[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#publishSmart(org.eclipse.wst.server.core.model.IModuleResource[], IPath, IProgressMonitor)">publishSmart</A></B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Smart copy the given module resources to the given path.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;IStatus[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#publishZip(org.eclipse.wst.server.core.model.IModuleResource[], IPath, IProgressMonitor)">publishZip</A></B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new zip file containing the given module resources.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/jst/server/core/PublishUtil.html#smartCopy(org.eclipse.wst.server.core.model.IModuleResource[], IPath, IProgressMonitor)">smartCopy</A></B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This method only returns a single error in the case of failure. Use publishSmart() instead.</I></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="copyFile(java.io.InputStream, java.lang.String)"><!-- --></A><H3>
copyFile</H3>
<PRE>
public static IStatus <B>copyFile</B>(java.io.InputStream&nbsp;in,
java.lang.String&nbsp;to)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Unused - will be removed.</I>
<P>
<DD>Copy a file from a to b. Closes the input stream after use.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in</CODE> - java.io.InputStream<DD><CODE>to</CODE> - java.lang.String
<DT><B>Returns:</B><DD>a status</DL>
</DD>
</DL>
<HR>
<A NAME="smartCopy(org.eclipse.wst.server.core.model.IModuleResource[], IPath, IProgressMonitor)"><!-- --></A><H3>
smartCopy</H3>
<PRE>
public static void <B>smartCopy</B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)
throws CoreException</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>This method only returns a single error in the case of failure. Use publishSmart() instead.</I>
<P>
<DD>Smart copy the given module resources to the given path.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resources</CODE> - <DD><CODE>path</CODE> - <DD><CODE>monitor</CODE> - a progress monitor, or <code>null</code> if progress
reporting and cancellation are not desired
<DT><B>Throws:</B>
<DD><CODE>CoreException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="handleDelta(int, IPath, org.eclipse.wst.server.core.model.IModuleResourceDelta)"><!-- --></A><H3>
handleDelta</H3>
<PRE>
public static void <B>handleDelta</B>(int&nbsp;kind,
IPath&nbsp;path,
<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResourceDelta.html" title="interface in org.eclipse.wst.server.core.model">IModuleResourceDelta</A>&nbsp;delta)
throws CoreException</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>This method only returns a single error in the case of failure. Use publishDelta() instead.</I>
<P>
<DD>Handle a delta publish.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>kind</CODE> - <DD><CODE>path</CODE> - <DD><CODE>delta</CODE> -
<DT><B>Throws:</B>
<DD><CODE>CoreException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="copy(org.eclipse.wst.server.core.model.IModuleResource[], IPath)"><!-- --></A><H3>
copy</H3>
<PRE>
public static void <B>copy</B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path)
throws CoreException</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>This method only returns a single error in the case of failure. Use publishFull() instead</I>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resources</CODE> - <DD><CODE>path</CODE> -
<DT><B>Throws:</B>
<DD><CODE>CoreException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createZipFile(org.eclipse.wst.server.core.model.IModuleResource[], IPath)"><!-- --></A><H3>
createZipFile</H3>
<PRE>
public static void <B>createZipFile</B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;zipPath)
throws CoreException</PRE>
<DL>
<DD>Creates a new zip file containing the given module resources. Deletes the existing file
(and doesn't create a new one) if resources is null or empty.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resources</CODE> - <DD><CODE>zipPath</CODE> -
<DT><B>Throws:</B>
<DD><CODE>CoreException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="deleteDirectory(java.io.File, IProgressMonitor)"><!-- --></A><H3>
deleteDirectory</H3>
<PRE>
public static IStatus[] <B>deleteDirectory</B>(java.io.File&nbsp;dir,
IProgressMonitor&nbsp;monitor)</PRE>
<DL>
<DD>Utility method to recursively delete a directory.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>dir</CODE> - a directory<DD><CODE>monitor</CODE> - a progress monitor, or <code>null</code> if progress
reporting and cancellation are not desired
<DT><B>Returns:</B><DD>a possibly-empty array of error and warning status</DL>
</DD>
</DL>
<HR>
<A NAME="publishSmart(org.eclipse.wst.server.core.model.IModuleResource[], IPath, IProgressMonitor)"><!-- --></A><H3>
publishSmart</H3>
<PRE>
public static IStatus[] <B>publishSmart</B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</PRE>
<DL>
<DD>Smart copy the given module resources to the given path.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resources</CODE> - an array of module resources<DD><CODE>path</CODE> - an external path to copy to<DD><CODE>monitor</CODE> - a progress monitor, or <code>null</code> if progress
reporting and cancellation are not desired
<DT><B>Returns:</B><DD>a possibly-empty array of error and warning status</DL>
</DD>
</DL>
<HR>
<A NAME="publishDelta(org.eclipse.wst.server.core.model.IModuleResourceDelta[], IPath, IProgressMonitor)"><!-- --></A><H3>
publishDelta</H3>
<PRE>
public static IStatus[] <B>publishDelta</B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResourceDelta.html" title="interface in org.eclipse.wst.server.core.model">IModuleResourceDelta</A>[]&nbsp;delta,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</PRE>
<DL>
<DD>Handle a delta publish.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>delta</CODE> - a module resource delta<DD><CODE>path</CODE> - the path to publish to<DD><CODE>monitor</CODE> - a progress monitor, or <code>null</code> if progress
reporting and cancellation are not desired
<DT><B>Returns:</B><DD>a possibly-empty array of error and warning status</DL>
</DD>
</DL>
<HR>
<A NAME="publishDelta(org.eclipse.wst.server.core.model.IModuleResourceDelta, IPath, IProgressMonitor)"><!-- --></A><H3>
publishDelta</H3>
<PRE>
public static IStatus[] <B>publishDelta</B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResourceDelta.html" title="interface in org.eclipse.wst.server.core.model">IModuleResourceDelta</A>&nbsp;delta,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</PRE>
<DL>
<DD>Handle a delta publish.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>delta</CODE> - a module resource delta<DD><CODE>path</CODE> - the path to publish to<DD><CODE>monitor</CODE> - a progress monitor, or <code>null</code> if progress
reporting and cancellation are not desired
<DT><B>Returns:</B><DD>a possibly-empty array of error and warning status</DL>
</DD>
</DL>
<HR>
<A NAME="publishFull(org.eclipse.wst.server.core.model.IModuleResource[], IPath, IProgressMonitor)"><!-- --></A><H3>
publishFull</H3>
<PRE>
public static IStatus[] <B>publishFull</B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</PRE>
<DL>
<DD>Publish the given module resources to the given path.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resources</CODE> - an array of module resources<DD><CODE>path</CODE> - a path to publish to<DD><CODE>monitor</CODE> - a progress monitor, or <code>null</code> if progress
reporting and cancellation are not desired
<DT><B>Returns:</B><DD>a possibly-empty array of error and warning status</DL>
</DD>
</DL>
<HR>
<A NAME="publishZip(org.eclipse.wst.server.core.model.IModuleResource[], IPath, IProgressMonitor)"><!-- --></A><H3>
publishZip</H3>
<PRE>
public static IStatus[] <B>publishZip</B>(<A HREF="../../../../../org/eclipse/wst/server/core/model/IModuleResource.html" title="interface in org.eclipse.wst.server.core.model">IModuleResource</A>[]&nbsp;resources,
IPath&nbsp;path,
IProgressMonitor&nbsp;monitor)</PRE>
<DL>
<DD>Creates a new zip file containing the given module resources. Deletes the existing file
(and doesn't create a new one) if resources is null or empty.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resources</CODE> - an array of module resources<DD><CODE>path</CODE> - the path where the zip file should be created<DD><CODE>monitor</CODE> - a progress monitor, or <code>null</code> if progress
reporting and cancellation are not desired
<DT><B>Returns:</B><DD>a possibly-empty array of error and warning status</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PublishUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/eclipse/jst/server/core/JndiObject.html" title="class in org.eclipse.jst.server.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/eclipse/jst/server/core/RuntimeClasspathProviderDelegate.html" title="class in org.eclipse.jst.server.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/eclipse/jst/server/core/PublishUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="PublishUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>