Publishing

Publishing PageSeeder data to print, the Web or both

Ant

In addition to PageSeeder's Bridge Java API, there is also an API based on Apache's Ant . Ant is a powerful, cross-platform, open source solution for batch processing. It can interact directly with a large range of libraries for technologies such as applications, network functionality and data formats. This makes Ant an ideal companion to publishing systems.

The Ant API coupled with the external Java API can be used to create batch-oriented tasks. This allows complex, CPU-intensive processes such as composing publications and importing collections of content to be distributed to different servers. They can be scheduled or triggered at the server, project, group or document level.

ANT API

Custom Ant tasks are built on top of:

  • Core PageSeeder Ant tasks providing atomic functionalities
  • An Ant library coordinating multiple sets of Ant tasks for complex processes
  • Optionally, Ant extensions for specialized tasks (importing from Excel, generating Javadoc, etc.)

Installation

When using these Ant tasks in Publish scripts with the Publish Engine, no download is required, but when running them as stand-alone scripts, the different jar files must be on the Ant classpath: the main external 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