com.ecyrd.jspwiki.diff
Class ExternalDiffProvider
java.lang.Object
com.ecyrd.jspwiki.diff.ExternalDiffProvider
- All Implemented Interfaces:
- DiffProvider, WikiProvider
public class ExternalDiffProvider
- extends Object
- implements DiffProvider
This DiffProvider allows external command line tools to be used to generate
the diff.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_DIFFCOMMAND
public static final String PROP_DIFFCOMMAND
- Determines the command to be used for 'diff'. This program must be able
to output diffs in the unified format. For example 'diff -u %s1 %s2'.
- See Also:
- Constant Field Values
ExternalDiffProvider
public ExternalDiffProvider()
getProviderInfo
public String getProviderInfo()
- Description copied from interface:
WikiProvider
- Return a valid HTML string for information. May
be anything.
- Specified by:
getProviderInfo
in interface WikiProvider
- See Also:
WikiProvider.getProviderInfo()
initialize
public void initialize(WikiEngine engine,
Properties properties)
throws NoRequiredPropertyException,
IOException
- Description copied from interface:
WikiProvider
- Initializes the page provider.
- Specified by:
initialize
in interface WikiProvider
- Throws:
NoRequiredPropertyException
IOException
- See Also:
WikiProvider.initialize(com.ecyrd.jspwiki.WikiEngine, java.util.Properties)
makeDiffHtml
public String makeDiffHtml(String p1,
String p2)
- Makes the diff by calling "diff" program.
- Specified by:
makeDiffHtml
in interface DiffProvider