forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r170675 - /forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/job/ForrestJob.java
Date Tue, 17 May 2005 22:02:39 GMT
Author: rgardler
Date: Tue May 17 15:02:39 2005
New Revision: 170675

URL: http://svn.apache.org/viewcvs?rev=170675&view=rev
Log:
detect error condition of being unable to load plugins

Modified:
    forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/job/ForrestJob.java

Modified: forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/job/ForrestJob.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/job/ForrestJob.java?rev=170675&r1=170674&r2=170675&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/job/ForrestJob.java (original)
+++ forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/job/ForrestJob.java Tue May
17 15:02:39 2005
@@ -48,6 +48,8 @@
 	private static final String CONCURRENT_ANT_BUILDS = "Concurrent Ant builds are possible
if you specify to build in a separate JRE.";
 
 	private static final String VALIDATION_ERROR_MESSAGE = "Could not validate document";
+	
+	private static final String PLUGIN_INSTALL_FAILURE = "Unable to install required plugins";
 
 	/**
 	 * Logger for this class
@@ -118,6 +120,10 @@
 							ForrestRunner.EXCEPTION_VALIDATION, userMsg, e);
 				} else if (errMsg.endsWith(CONCURRENT_ANT_BUILDS)) {
 					userMsg = "Can only run one Site operation at a time";
+					status = new Status(Status.ERROR, ForrestPlugin.ID,
+							EXCEPTION_ANT_RUNNING, userMsg, e);
+				} else if (errMsg.indexOf(PLUGIN_INSTALL_FAILURE) >= 0) {
+					userMsg = "Unable to install required server plugins";
 					status = new Status(Status.ERROR, ForrestPlugin.ID,
 							EXCEPTION_ANT_RUNNING, userMsg, e);
 				} else {



Mime
View raw message