jruaux 2003/01/10 09:28:20
Modified: Eclipse-Plugin/src/java/org/apache/cactus/eclipse/launcher
WarBuilder.java
Log:
Added IProgressMonitor capability
Revision Changes Path
1.8 +4 -2
jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/launcher/WarBuilder.java
Index: WarBuilder.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/launcher/WarBuilder.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- WarBuilder.java 9 Jan 2003 11:13:02 -0000 1.7
+++ WarBuilder.java 10 Jan 2003 17:28:20 -0000 1.8
@@ -64,6 +64,7 @@
import org.eclipse.ant.core.AntRunner;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
@@ -155,10 +156,11 @@
/**
* Creates the war file in the Java temp directory.
+ * @param thePM a monitor that reflects the overall progress
* @return File the location where the war file was created
* @throws CoreException if we can't create the file
*/
- public File createWar() throws CoreException
+ public File createWar(IProgressMonitor thePM) throws CoreException
{
File testWar = null;
try
@@ -202,7 +204,7 @@
runner.setArguments(antArguments);
String[] targets = { "testwar" };
runner.setExecutionTargets(targets);
- runner.run();
+ runner.run(thePM);
// Delete the created Web dir, if any.
// Could not use deleteOnExit on this dir because the VM launched by
// Ant seems to be crashing when shut down by the 'stop' task
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>