ant — Processes SilkPage command line targets options used for generating and publishing websites.
ant [config] [preview] [publish]
[scratch]
scratchuses 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:
-f src/xml/build/tasks.xml
-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.
ant -f
src/xml/build/tasks.xml -Dsite.id= scratchidentifier
previewAfter 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.
ant preview
publishgenerates 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:
-Dftp.userid=login
-Dftp.password=password
ant -Dftp.userid= login-Dftp.password= publishpassword
configprints 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
ant -f
src/xml/build/tasks.xml config