public class UpdateAdornedFile
extends java.lang.Object
Usage:
java edu.northwestern.at.morphadorner.tools.compareadornedfiles.UpdateAdornedFile operation oldadorned.xml changelog.xml newadorned.xml
operation -- Update operation, either "update" to apply
updates in changelog.xml to srcadorned.xml to
produce destadorned.xml, or
"revert" to undo updates in changelog.xml to
srcadorned.xml to produce destadorned.xml .
srcadorned.xml -- Source adorned file.
changelog.xml -- Word differences between two adorned files.
destadorned.xml -- Destination adorned file.
| Constructor and Description |
|---|
UpdateAdornedFile(boolean revert,
java.lang.String srcAdornedFileName,
java.lang.String changeLogFileName,
java.lang.String destAdornedFileName,
java.io.PrintStream printStream)
Create UpdateAdornedFile object.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
displayHelp(java.io.PrintStream printStream)
Display usage/help.
|
static void |
main(java.lang.String[] args)
Main program.
|
public UpdateAdornedFile(boolean revert,
java.lang.String srcAdornedFileName,
java.lang.String changeLogFileName,
java.lang.String destAdornedFileName,
java.io.PrintStream printStream)
throws java.lang.Exception
revert - true to revert changes, false to
apply changes.srcAdornedFileName - Source adorned file to update/revert.changeLogFileName - Change log file.destAdornedFileName - Destination adorned file.printStream - Status output file stream.
May be null to suppress output.java.lang.Exception - If any error occurs.