logo
WXT, a Web and Xml Tool
from Ostfold College
: Introduction > Documentation >Commandline

Command Line

You can run WXT from the commandline. The format of a command is something like this:

  java -jar wxt.jar script [page]

depending on where you have placed wxt.jar.

Page is optional. When omitted, wxt build all pages in the given script. For instance like this on my harddisk:

  java -jar c:\wxt\wxt.jar c:\project\script.xml

You may use the page-argument to restrict building to one page or one group. A group must me identified by name. A page may be identified by name or by a (partial) filepath. Examples:

  java -jar c:\wxt\wxt.jar c:\project\script.xml page3
  java -jar c:\wxt\wxt.jar c:\project\script.xml c:\project\pages\page-3.html
  java -jar c:\wxt\wxt.jar c:\project\script.xml pages\page-3.html
  java -jar c:\wxt\wxt.jar c:\project\script.xml pagegroup

If a filename, or groupname, is ambigiuos, the first match found in a preorder traversal of the page structure is used.

Note that it is not a good idea to use the page-argument with a single page if that page is set up with contents that is based on the content of other pages, for instance an index table (PI: ixtable). Tables of content is ok in this respect since they depend on the structure given i the script, not on the content of pages.

WXT, a Web and Xml Tool from Ostfold College: http://www.ia.hiof.no/~borres/wxtdoc/


Bygget med WXT : 11.jan.2009