com.atlassian.jira.upgrade.tasks
Class UpgradeTask_Build190

java.lang.Object
  extended by com.atlassian.jira.upgrade.AbstractUpgradeTask
      extended by com.atlassian.jira.upgrade.tasks.UpgradeTask_Build190
All Implemented Interfaces:
UpgradeTask

public class UpgradeTask_Build190
extends AbstractUpgradeTask

This upgrade task checks to see if an export service exists without a backup path set. If this is the case, we check for the APKeys.JIRA_PATH_BACKUP property and if it is set, we set the export service's path to this property.

This is to fix all JIRA instances affected by JRA-12242


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask
UpgradeTask.Status
 
Field Summary
static String EXPORT_SERVICE_CLASS
           
 
Constructor Summary
UpgradeTask_Build190(ServiceManager serviceManager, ApplicationProperties applicationProperties)
           
 
Method Summary
 void doUpgrade()
          Loops through all the services until one with the right service class is found.
 String getBuildNumber()
          Returns 190
 String getShortDescription()
          Returns a short description of this upgrade task
 
Methods inherited from class com.atlassian.jira.upgrade.AbstractUpgradeTask
addError, addErrors, addErrors, getApplicationProperties, getDelegator, getErrors, getI18nBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPORT_SERVICE_CLASS

public static final String EXPORT_SERVICE_CLASS
See Also:
Constant Field Values
Constructor Detail

UpgradeTask_Build190

public UpgradeTask_Build190(ServiceManager serviceManager,
                            ApplicationProperties applicationProperties)
Method Detail

getBuildNumber

public String getBuildNumber()
Returns 190

Specified by:
getBuildNumber in interface UpgradeTask
Specified by:
getBuildNumber in class AbstractUpgradeTask
Returns:
190

doUpgrade

public void doUpgrade()
Loops through all the services until one with the right service class is found. We then check if it has a directory set and if not, we set it to the ap property.

Specified by:
doUpgrade in interface UpgradeTask
Specified by:
doUpgrade in class AbstractUpgradeTask

getShortDescription

public String getShortDescription()
Returns a short description of this upgrade task

Specified by:
getShortDescription in interface UpgradeTask
Overrides:
getShortDescription in class AbstractUpgradeTask
Returns:
a short description string


Copyright © 2002-2009 Atlassian. All Rights Reserved.