Class ExternalMergeToolUtils
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.externaltool.ExternalMergeToolUtils
-
public final class ExternalMergeToolUtils extends Object
Utility methods used for running external comparison and merge tools.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExternalMergeToolExecutionStatus
runAutoThreeWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, File ancestorFile, File mergeResultFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the automatic three-way merge using the specified external merge tool.static ExternalMergeToolExecutionStatus
runAutoThreeWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, InputStream ancestorStream, File mergeResultFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the automatic three-way merge using the specified external merge tool.static ExternalMergeToolExecutionStatus
runThreeWayComparison(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, File ancestorFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the three-way comparison using the specified external merge tool.static ExternalMergeToolExecutionStatus
runThreeWayComparison(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, InputStream ancestorStream, String mainTitle, String otherTitle, String ancestorTitle)
Runs the three-way comparison using the specified external merge tool.static ExternalMergeToolExecutionStatus
runThreeWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, File ancestorFile, File mergeResultFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the three-way merge using the specified external merge tool.static ExternalMergeToolExecutionStatus
runThreeWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, InputStream ancestorStream, File mergeResultFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the three-way merge using the specified external merge tool.static ExternalMergeToolExecutionStatus
runTwoWayComparison(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, String mainTitle, String otherTitle)
Runs the two-way comparison using the specified external merge tool.static ExternalMergeToolExecutionStatus
runTwoWayComparison(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, String mainTitle, String otherTitle)
Runs the two-way comparison using the specified external merge tool.static ExternalMergeToolExecutionStatus
runTwoWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, File mergeResultFile, String mainTitle, String otherTitle)
Runs the two-way merge using the specified external merge tool.static ExternalMergeToolExecutionStatus
runTwoWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, File mergeResultFile, String mainTitle, String otherTitle)
Runs the two-way merge using the specified external merge tool.
-
-
-
Method Detail
-
runTwoWayComparison
public static ExternalMergeToolExecutionStatus runTwoWayComparison(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, String mainTitle, String otherTitle)
Runs the two-way comparison using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainStream
- the main stream to compare, cannot benull
otherStream
- the other stream to compare, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runTwoWayComparison
public static ExternalMergeToolExecutionStatus runTwoWayComparison(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, String mainTitle, String otherTitle)
Runs the two-way comparison using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainFile
- the main file to compare, cannot benull
otherFile
- the other file to compare, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runTwoWayMerge
public static ExternalMergeToolExecutionStatus runTwoWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, File mergeResultFile, String mainTitle, String otherTitle)
Runs the two-way merge using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainStream
- the main stream to merge, cannot benull
otherStream
- the other stream to merge, cannot benull
mergeResultFile
- the file to store merge result, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runTwoWayMerge
public static ExternalMergeToolExecutionStatus runTwoWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, File mergeResultFile, String mainTitle, String otherTitle)
Runs the two-way merge using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainFile
- the main file to merge, cannot benull
otherFile
- the other file to merge, cannot benull
mergeResultFile
- the file to store merge result, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runThreeWayComparison
public static ExternalMergeToolExecutionStatus runThreeWayComparison(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, InputStream ancestorStream, String mainTitle, String otherTitle, String ancestorTitle)
Runs the three-way comparison using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainStream
- the main stream to compare, cannot benull
otherStream
- the other stream to compare, cannot benull
ancestorStream
- the ancestor stream to compare, may benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
ancestorTitle
- the ancestor title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runThreeWayComparison
public static ExternalMergeToolExecutionStatus runThreeWayComparison(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, File ancestorFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the three-way comparison using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainFile
- the main file to compare, cannot benull
otherFile
- the other file to compare, cannot benull
ancestorFile
- the ancestor file to compare, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
ancestorTitle
- the ancestor title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runThreeWayMerge
public static ExternalMergeToolExecutionStatus runThreeWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, InputStream ancestorStream, File mergeResultFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the three-way merge using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainStream
- the main stream to merge, cannot benull
otherStream
- the other stream to merge, cannot benull
ancestorStream
- the ancestor stream to merge, may benull
mergeResultFile
- the file to store merge result, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
ancestorTitle
- the ancestor title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runThreeWayMerge
public static ExternalMergeToolExecutionStatus runThreeWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, File ancestorFile, File mergeResultFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the three-way merge using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainFile
- the main file to merge, cannot benull
otherFile
- the other file to merge, cannot benull
ancestorFile
- the ancestor file to merge, cannot benull
mergeResultFile
- the file to store merge result, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
ancestorTitle
- the ancestor title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runAutoThreeWayMerge
public static ExternalMergeToolExecutionStatus runAutoThreeWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, InputStream mainStream, InputStream otherStream, InputStream ancestorStream, File mergeResultFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the automatic three-way merge using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainStream
- the main stream to merge, cannot benull
otherStream
- the other stream to merge, cannot benull
ancestorStream
- the ancestor stream to merge, may benull
mergeResultFile
- the file to store merge result, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
ancestorTitle
- the ancestor title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
runAutoThreeWayMerge
public static ExternalMergeToolExecutionStatus runAutoThreeWayMerge(ExternalMergeToolConfiguration externalMergeToolConfiguration, File mainFile, File otherFile, File ancestorFile, File mergeResultFile, String mainTitle, String otherTitle, String ancestorTitle)
Runs the automatic three-way merge using the specified external merge tool.- Parameters:
externalMergeToolConfiguration
- the external merge tool configuration, cannot benull
mainFile
- the main file to merge, cannot benull
otherFile
- the other file to merge, cannot benull
ancestorFile
- the ancestor file to merge, cannot benull
mergeResultFile
- the file to store merge result, cannot benull
mainTitle
- the main title, cannot benull
otherTitle
- the other title, cannot benull
ancestorTitle
- the ancestor title, cannot benull
- Returns:
- the external merge tool executation status, never
null
-
-