@Override protected void performInitialize() throws LimbusException { try { // Create the properties this.properties = new LimbusProperties(filesystem, getClass(), true, false); // Register as a deployment listener container.addDeploymentListener(this); // When created by the container, clean old deployments cleanWorkDirectory(); // Make sure work folder is available getCreateOrFailWorkDirectory(); // Make sure deploy folder is available getCreateOrFailDeployDirectory(); // Start hot deploy listener startFileDeployWatchService(); // Deploy all artifacts from deploy directory. deployAll(); } catch (Exception e) { throw new LimbusException("Cannot initialize Limbus Deploy Service.", e); } }