forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject svn commit: rev 9915 - xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/action
Date Wed, 07 Apr 2004 20:06:00 GMT
Author: brondsem
Date: Wed Apr  7 13:05:59 2004
New Revision: 9915

Modified:
   xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/action/ExecuteAction.java
Log:
fix the check for each button

Modified: xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/action/ExecuteAction.java
==============================================================================
--- xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/action/ExecuteAction.java
(original)
+++ xml/forrest/trunk/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/action/ExecuteAction.java
Wed Apr  7 13:05:59 2004
@@ -64,7 +64,7 @@
 			return mapping.findForward(Constants.FORWARD_NAME_SUCCESS);
 		}
 
-		if (build != null) {
+		if (build != null && !build.equals("")) {
 			if (p.asDTO().isBuildable()) {
 				try {
 					Executor.build(project);
@@ -75,7 +75,7 @@
 			} else {
 				errors.add("execute", new ActionError("error.authorization"));
 			}
-		} else if (deploy != null) {
+		} else if (deploy != null && !deploy.equals("")) {
 			if (p.asDTO().isDeployable()) {
 				try {
 					Executor.deploy(project);

Mime
View raw message