One good way to create a new task is by recording a macro.
Then you can use any tasks available in ANT to perform your own task and use the properties set by Ant Commander.
For more information about the ANT tasks go to http://ant.jakarta.org/manual/.