|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.functest.framework.xmlbackup.XmlBackupCopier
public class XmlBackupCopier
This class is used to copy JIRA XML backups to the JIRA import directory.
| Constructor Summary | |
|---|---|
XmlBackupCopier(URL baseUrl)
Creates a new XmlBackupCopier for the given base URL. |
|
| Method Summary | |
|---|---|
boolean |
copyXmlBackupTo(String sourcePath,
String destinationPath)
Copies the input file to the JIRA import directory, substituting string tokens. |
boolean |
copyXmlBackupTo(String sourcePath,
String destinationPath,
Map<Pattern,String> substitutions)
Copies the input file to the JIRA import directory, substituting string tokens. |
protected Map<Pattern,String> |
createBaseUrlSubstitution(String baseURL)
The substitutions to make in the file in order to set the base URL correctly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlBackupCopier(URL baseUrl)
baseUrl - a String containing the base URL of the running JIRA instance| Method Detail |
|---|
public boolean copyXmlBackupTo(String sourcePath,
String destinationPath)
baseUrl.
The string tokens that will be replaced are dictated by the contents of the substitutions parameter.
sourcePath - the absolute path of the source filedestinationPath - the absolute path of the destination file (will be created if it doesn't exist)
public boolean copyXmlBackupTo(String sourcePath,
String destinationPath,
Map<Pattern,String> substitutions)
baseUrl.
The string tokens that will be replaced are dictated by the contents of the substitutions parameter.
sourcePath - the absolute path of the source filedestinationPath - the absolute path of the destination file (will be created if it doesn't exist)substitutions - the substitutions that will be performed
protected Map<Pattern,String> createBaseUrlSubstitution(String baseURL)
baseURL - a String containing the base URL to set in the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||