Skip to main content

 Sample Code

Some code samples

Ant sample code

Some sample code from Ant build files for use with the publisher.

Basic Ant build file

A basic Ant build file using the Ant library.

<?xml version="1.0" encoding="utf-8" ?>
  Basic ANT file for the publisher.
<project name="sample" xmlns:ps="antlib:com.pageseeder.publishapi.ant">

  <!-- Main task visible in the PageSeeder UI -->
  <target name="do-something" description="Does something">
    <!-- Your ANT code here ... -->

  <!-- Hidden task (starts with '-') -->
  <target name="-do-something" description="Does something">
    <!-- You ANT code here ... -->

Created on , last edited on