JNode and Ant

After reviewing the official documentation of Apache Ant, I wrote a program called GetProgram. It implements the Program interface and executes the Get task (org.apache.tools.ant.taskdefs.Get).

$ get src=s dest=d

It was not difficult to provide a wrapper for an Ant task. It was just tedious. Instantly, if there were a generic way to discover the list of Ant tasks and the parameter types for an Ant task, a serious collection of JNode commands would wrap corresponding Ant tasks. Instead of invoking the ant command, invoke the task directly in a shell script.

Of course, not all Ant tasks would be easily invoked from a command line.