public class TemporaryDirectoryCleaner extends Object
java.io.tmpdir.
Since Jira 9.11.0, the cleaning is enabled by default. It can be disabled by setting the system property
tmpdir.clean.on.startup.disabled to true. Before Jira 9.11.0, the cleaning was disabled by default
and could be enabled by setting the system property tmpdir.clean.on.startup to true.
| Modifier and Type | Field and Description |
|---|---|
static String |
DISABLE_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 DISABLE_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.disabled is not set to true.java.io.tmpdir is defined and the directory exists.IllegalStateException - if java.io.tmpdir is not defined.Copyright © 2002-2024 Atlassian. All Rights Reserved.