Class TemporaryFilesDirStartupTask
java.lang.Object
org.craftercms.studio.impl.v2.event.TemporaryFilesDirStartupTask
This task sets up the temporary files directory for Crafter Studio.
It will remove any contents of the TEMP_DIR/studio directory if it exists, otherwise it will just create the directory.
It will remove any contents of the TEMP_DIR/studio directory if it exists, otherwise it will just create the directory.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TemporaryFilesDirStartupTask
public TemporaryFilesDirStartupTask()
-
-
Method Details
-
cleanup
@Order(-2147483648) @EventListener(value=org.springframework.context.event.ContextRefreshedEvent.class, condition="event.applicationContext.parent == null") public void cleanup() throws IOException- Throws:
IOException
-