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.
Continue reading Apache Ant – Define your custom Ant Task using MacroDef
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
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
Maven is my favourite Java project management tool. But for legacy Java projects which you have to stick to use Apache Ant, you can consider Apache Ivy.
Apache Ivy installation is simple, download the binary, extract the ivy.jar to your ANT_HOME/lib.
Continue reading Apache Ivy – Manage dependencies for Ant build Java 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
Haven’t worked with Apache Ant for a long time. It’s time to pick up it again. Here is a simple Java project could be built by Ant.
Continue reading Apache Ant – A simple Ant build project
The maven-antrun-plugin allows us to run Ant tasks in Maven. On the contrary, there is no Ant task for running Maven in Ant.
Continue reading Run Maven in Ant
AntInstaller is a useful tools for building a self-extract installer which is able to collect user input and run specific Ant targets from a build.xml file.
Continue reading AntInstaller – Build a Self-Extract Installer