[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jboss-system/src/main/org/jboss/deployment/scanner URLDeploymentScanner.java
From: Scott M Stark <starksm () users ! sourceforge ! net>
Date: 2002-07-30 7:31:48
[Download RAW message or body]
User: starksm
Date: 02/07/30 00:31:48
Modified: src/main/org/jboss/deployment/scanner
URLDeploymentScanner.java
Log:
Validate that there are still incomplete deployments after a scan if there
is a lastIncompleteDeploymentException as this may be a transient
phenomenon that has been resolved.
Revision Changes Path
1.19 +21 -4 jboss-system/src/main/org/jboss/deployment/scanner/URLDeploymentScanner.java
Index: URLDeploymentScanner.java
===================================================================
RCS file: /cvsroot/jboss/jboss-system/src/main/org/jboss/deployment/scanner/URLDeploymentScanner.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- URLDeploymentScanner.java 30 Jul 2002 06:47:39 -0000 1.18
+++ URLDeploymentScanner.java 30 Jul 2002 07:31:48 -0000 1.19
@@ -21,6 +21,7 @@
import java.util.Set;
import java.util.HashSet;
import java.util.StringTokenizer;
+import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
@@ -41,7 +42,7 @@
*
* @jmx:mbean extends="org.jboss.deployment.scanner.DeploymentScannerMBean"
*
- * @version <tt>$Revision: 1.18 $</tt>
+ * @version <tt>$Revision: 1.19 $</tt>
* @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
*/
public class URLDeploymentScanner
@@ -57,14 +58,16 @@
/** The server's home directory, for relative paths. */
protected File serverHome;
- /** HACK to sort urls from a scaned directory. */
+ /** A sorter urls from a scaned directory to allow for coarse dependency
+ ordering based on file type
+ */
protected Comparator sorter;
/** Allow a filter for scanned directories */
protected FileFilter filter;
private IncompleteDeploymentException lastIncompleteDeploymentException;
-
+
/**
* @jmx:managed-attribute
*/
@@ -520,7 +523,21 @@
//report any problems present at end of scan
if (lastIncompleteDeploymentException != null)
{
- log.error(lastIncompleteDeploymentException);
+ // Validate that there are still incomplete deployments
+ try
+ {
+ Object[] args = {};
+ String[] sig = {};
+ Object o = getServer().invoke(getDeployer(), "listIncompletelyDeployed",
+ args, sig);
+ Collection incomplete = (Collection) o;
+ if( incomplete.size() > 0 )
+ log.error(lastIncompleteDeploymentException);
+ }
+ catch (Exception e)
+ {
+ log.error(lastIncompleteDeploymentException);
+ }
} // end of if ()
}
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic