Tag Archives: Ant

If-Else in Ant

When I need to write quick script to perform a simple task, I opt to use Ant instead of a shell script. Unfortunately, the Ant core tasks doesn’t provide any flow logic like the everyday if-else statements. Ant-Contrib provides a … Continue reading

Posted in Ant, Java | Tagged , | Comments Off

Sending Email with Ant

Sometimes it’s useful for an Ant script to send out an email. This can be easily done using the mail task which is part of the Core Tasks in Ant. Before using the mail task, the JavaBean Activiation Framework jar … Continue reading

Posted in Ant, Java | Tagged , | Comments Off

Some Useful Ant Tasks

Copying a File to a Server Running SSH Daemon Download the jsch jar file from (http://www.jcraft.com/jsch/) > wget http://prdownloads.sourceforge.net/jsch/jsch-x.x.x.jar Copy the jar file into the lib directory of your ANT HOME > cp jsch-x.x.x.jar ${ANT_HOME}/lib Use the scp ant task … Continue reading

Posted in Ant, Java | Tagged , | Comments Off