Category Archives: Ant

Apache Ant – Define your custom Ant Task using MacroDef

We can define custom task in Apache Ant using the <macrodef> which makes use of the <sequential> nested task as a template.

Try the following build.xml and run ant to get a rough idea on how it works.
build.xml
Continue reading Apache Ant – Define your custom Ant Task using MacroDef

Apache Ivy – Publish to Artifactory

Previously we have talked about how to work with Apache Ivy and Artifactory.

 

The next thing i would like to share is to publish your built .jar file to Artifactory.

1. Login to Artifactory web portal and create a new repository, click on the Admin tab and select Repository on the left menu side bar.
Continue reading Apache Ivy – Publish to Artifactory

Apache Ivy – Integrate with Artifactory

Like Maven, we could setup a repository server for better dependency management. So instead of connecting to the public repository, we want our Apache Ivy project links to our repository server, i have already setup the Artifactory repository server in my local machine. Let’s continue with the project we created yesterday.

 

1. Add the ivysettings.xml location in the build.xml.
Continue reading Apache Ivy – Integrate with Artifactory

Jenkins – Setup a simple Ant build project

Jenkins, previously named as Hudson, is a continuous integration tool just like CruiseControl. It has been almost 4 years since i started learning Maven which made me fall in love about best practice. Deployment and testing automation is really fun and finally i got a chance to play it again.

In this article, i would show you how to setup a simple Ant build project in Jenkins. Before we start, please refer to the simple Java project example in the post below.

 

1. Download and install Jenkins.
Continue reading Jenkins – Setup a simple Ant build project