edu.northwestern.at.wordhoard.tools
Class BuildWorks

java.lang.Object
  extended by edu.northwestern.at.wordhoard.tools.BuildWorks

public class BuildWorks
extends java.lang.Object

Builds works.

Usage:

BuildWorks in db username password [spellings] [debug]

in = Path to a work definition XML input file, or a path to a directory of such files. If a directory path is specified, all files in the file system tree rooted at the directory whose names end in ".xml" are processed.

dbname = Database name.

username = MySQL username.

password = MySQL password.

spellings = Optional path to a standard spellings definition XML input file, or a path to a directory of such files. If a directory path is specified, all files in the file system tree rooted at the directory whose names end in ".xml" are processed.

debug = Debugging option. If present, the WordHoard client is run and the newly built work is opened. In addition, tagged words are not saved in the database, to make the program run much faster. This option is useful when working on text formatting issues. If a directory is being processed, this option is ignored.


Method Summary
static void main(java.lang.String[] args)
          The main program.
static void setCorpusCounters()
          Sets the corpus counters.
static void setPartCounters(WorkPart part, int numLines, int numWords)
          Sets the line and word counters for a work part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setPartCounters

public static void setPartCounters(WorkPart part,
                                   int numLines,
                                   int numWords)
                            throws java.lang.Exception
Sets the line and word counters for a work part.

Parameters:
part - Work part.
numLines - Number of lines in work part proper (not including descendants).
numWords - Number of words in work part proper (not including descendants).
Throws:
java.lang.Exception

setCorpusCounters

public static void setCorpusCounters()
                              throws java.lang.Exception
Sets the corpus counters.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
The main program.

Parameters:
args - Command line arguments.