public class TemporaryDirectoryCleaner extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENABLE_TMP_DIRECTORY_CLEANER_PROPERTY_KEY |
| Constructor and Description |
|---|
TemporaryDirectoryCleaner(JiraHome jiraHome,
JiraProperties jiraProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Executes cleaning of the temporary directory defined in
java.io.tmpdir. |
public static final String ENABLE_TMP_DIRECTORY_CLEANER_PROPERTY_KEY
public TemporaryDirectoryCleaner(JiraHome jiraHome, JiraProperties jiraProperties)
public void start()
java.io.tmpdir.
Due to safety reasons, the cleaning will run only when all the following statements are true:
tmpdir.clean.on.startup is set to "true".java.io.tmpdir is defined and the directory exists.IllegalStateException - if java.io.tmpdir is not defined.Copyright © 2002-2023 Atlassian. All Rights Reserved.