0 Replies Latest reply on Jul 3, 2003 11:32 AM by Sanne de

    Small patch for deploying directories

    Sanne de Novice

      Hi,

      Someone complained about incomplete deployments in the case that a directory has not been fully copied to /deploy yet deploment has started.

      Attached three files adding a directoryDeployDelay property to the Deployscanner and URLDeploymentScanner which makesthe scanner wait a configured amount of time before deploying a directory (could be zero) . The delay is actually implemented in the deploy method:

      try
      {
      if (du.isFile() && du.getFile().isDirectory())
      {
      Thread.sleep(directoryDeployDelay.longValue());
      }

      deployer.deploy(du.url);
      }
      catch (IncompleteDeploymentException e)
      {
      lastIncompleteDeploymentException = e;
      }

      If there's any interest I can alter the other scanners as well post dif files.

      Regards,

      Sanne