Ant mail task example

Here is an example of an Ant build file that performs a simple task, such as copying a file:

<?xml version="1.0" encoding="UTF-8"?>
<project name="MyProject" default="copy-file">

  <!-- Define a target to copy a file -->
  <target name="copy-file">
    <copy file="src/main/resources/original.txt" tofile="target/copy.txt"/>
  </target>

</project>

Let me explain what's going on in this example:

To run this build script, you would save it to a file with a .xml extension (e.g. build.xml) and then execute the following command:

ant copy-file

This would run the copy-file target, which would copy the original.txt file from the src/main/resources directory to the target directory.

Here are some other examples of Ant tasks:

You can find more information about Ant tasks and attributes in the Ant documentation.