Name

ant — Processes SilkPage command line targets options used for generating and publishing websites.

Synopsis

ant [config] [preview] [publish] [scratch]

Targets

scratch

uses the pre-defined SilkPage templates to generate the first draft of your website in XML format. This target must be executed in the $SILKPAGE_HOME directory and takes two arguments:

  1. -f src/xml/build/tasks.xml

  2. -Dsite.id=identifier

Once executed, it generates the directory structure shown in Section 1.1.1, “Scratch Website Directory Structure” that can be used as a start point for your website development.

Full command line: 

ant -f src/xml/build/tasks.xml -Dsite.id=identifier scratch

preview

After executing the the section called “scratch target, you need to change directory to $SITE_HOME and execute the preview target in order to generate and install a local copy of your website in XHTML format. The local website is installed relative to the temp.dir directory. If not specified, the local host default temp dir is used.

Full command line: 

ant preview

publish

generates a local copy of your website and publishes it online by uploading the generated files. Before executing this target, make sure that you have set the configuration parameters of Section 1.3, “FTP Parameters”. This target must be executed in the $SITE_HOME directory and takes two arguments that are the login and password of the FTP server of your website:

  1. -Dftp.userid=login

  2. -Dftp.password=password

Full command line: 

ant -Dftp.userid=login -Dftp.password=password publish

config

prints configuration information about the SilkPage and its prerequisite software mentioned in Section 2, “Prerequisite Software”. This target must be executed in $SILKPAGE_HOME directory and takes the following argument:

-f src/xml/build/tasks.xml

Full command line: 

ant -f src/xml/build/tasks.xml config