Package org.jboss.forge.resource.events

Examples of org.jboss.forge.resource.events.ResourceDeleted


   {
      if (recursive)
      {
         if (_deleteRecursive(file, true))
         {
            resourceFactory.fireEvent(new ResourceDeleted(this));
            return true;
         }
         return false;
      }

      if ((file.listFiles() != null) && (file.listFiles().length != 0))
      {
         throw new RuntimeException("directory not empty");
      }

      if (OperatingSystemUtils.isWindows())
      {
         System.gc(); // ensure no lingering handles that would prevent deletion
      }

      if (file.delete())
      {
         resourceFactory.fireEvent(new ResourceDeleted(this));
         return true;
      }
      return false;
   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.resource.events.ResourceDeleted

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.