---
title: "ANT"
source: https://dev.pageseeder.com/reference/sample_code/ant.html
last_updated: 2026-08-07T17:09:54+10:00
tokens: ~162
---

# 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

<?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 ... -->
  </target>

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

```

