Publishing

Publishing PageSeeder data to print, the Web or both

ANT Tasks

PageSeeder's publish API includes a set of Ant task which can be used to access some of PageSeeder's functionality programmatically.

Ant tasks provide access to core functions of PageSeeder via a set of predefined Ant tasks so that they can be invoked as:

<ps:mytask src="[source]" ... />

Because they are limited in scope one of the Ant Extensions may be more appropriate to solve complex problems.

Usage

PageSeeder Ant task are usually run in two different context, within the PageSeeder Publisher or as standalone (in the command-line or a code editor such as Eclipse)

Publisher

When using PageSeeder Ant tasks in publish scripts with the Publish Engine, no download is required. The environment is already setup and provided by the PageSeeder Publisher.

Standalone

When running them as stand-alone scripts, the different jar files must be on the Ant classpath: the main API jar file (pageseeder-publish-api-x.jar)  – Download .

Note

The version of the pageseeder-publish-api must be the same as the PageSeeder Server. The version is listed on the lower left of all PageSeeder pages.

The tasks must be defined in the Ant script. The following attribute should be added to the <project> element at the top of the Ant file:

     xmlns:ps="antlib:com.pageseeder.publishapi.ant"

Created on , last edited on