User: mnf999 Date: 02/01/29 18:13:03 Modified: src/main/org/jboss/deployment MainDeployer.java Log: Fix for the removal of files Revision Changes Path 1.2 +6 -6 jboss/src/main/org/jboss/deployment/MainDeployer.java Index: MainDeployer.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/MainDeployer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- MainDeployer.java 2002/01/20 03:41:15 1.1 +++ MainDeployer.java 2002/01/30 02:13:03 1.2 @@ -42,7 +42,7 @@ * Takes a series of URL to watch, detects changes and calls the appropriate Deployers * * @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a> -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * * */ @@ -505,11 +505,11 @@ // Get lastModified of file from file system if (deployment.watch.getProtocol().startsWith("file")) { - lastModified = new File(deployment.watch.getFile()).lastModified(); - // File watched = new File(deployment.watch.getFile()); - //Only scan individual files - // if (!watched.isDirectory()) lastModified = watched.lastModified(); - } + File theFile = new File(deployment.watch.getFile()); + if ( ! theFile.exists()) modified.add(deployment); + + lastModified = theFile.lastModified(); + } // Use URL connection to get lastModified on http else lastModified = deployment.watch.openConnection().getLastModified();
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
