Home » Tag Archives: Apache Ant

Tag Archives: Apache Ant

Displaying Paths in Ant

apache-ant-logo

In the blog posts Java and Ant Properties Refresher and Ant <echoproperties /> Task, I wrote about how being able to see how properties are seen by an Ant build can be helpful in understanding that build better. It is often the case that it’d also be valuable to see various paths used in the build as the build sees ...

Read More »

Java Build Tools: Ant vs Maven vs Gradle

java-logo

In the beginning there was Make as the only build tool available. Later on it was improved with GNU Make. However, since then our needs increased and, as a result, build tools evolved. JVM ecosystem is dominated with three build tools: Apache Ant with Ivy Maven Gradle   Ant with Ivy Ant was the first among “modern” build tools. In ...

Read More »

Apache Ant tasks for JMX access

apache-ant-logo

I wanted to invoke JMX operations from the Ant tasks. However finding usable ant tasks library as well as the usage was rather tricky. So let me share my experience to make things easier for others. Ant tasks for JMX operations I decided to follow Tomcat documentation and used ant tasks distributed with tomcat. Just for the record the usage ...

Read More »

4 simple steps to migrate legacy projects from Ant to Maven

apache-ant-logo

For some time we were thinking about migrating our build to maven from ant. It happened last month and was actually simpler than what we have anticipated. From my experience, here is a brief about the steps we have followed. Our application is a  is a enterprise web application build with multiple frameworks and technologies and is deployed as a single WAR. 1. ...

Read More »

Ant Properties Nuances

apache-ant-logo

Every once in a while, I’m reminded of a few subtle nuances of Ant properties that can, when forgotten, lead to confusion when dealing with Ant. In particular, the fact that Ant properties are generally immutable (not counting local properties as of Ant 1.8) and are set “permanently” upon their first setting can lead to slightly surprising results. The properties ...

Read More »

How to run Ant targets with Maven?

apache-ant-logo

The maven-antrun-plugin allows us to run ant targets with various maven build phases. I am going to explain very practical usage of maven-antrun-plugin specially for developers with development environment. Normally with maven build, you will bundle your project either to a war file or ear file. You can directly copy this war or ear file into the server deployment folder ...

Read More »

Migrating a Large Project from Ant to Maven

apache-maven-logo

The truth is we had been under difficult times. We spent almost three months to migrate our build mechanism from Ant to Maven. That’s the minimum time you have to put in your schedule if you are planning to do the same in a large project. There are still some collateral effects of this migration that we are struggling to ...

Read More »

Useful Ant build tags

apache-ant-logo

Questions: How to do following tasks in ant file? Make zip file. Run command. Copy files to remote machine. Run commands on Remote Linux machine. Open an input box and respond to input value. Make an ant call. Answers: 1. Make zip file: Following is the xml for making zip file in ant: <zip destfile='${destination.folder}/zipName.zip'> <fileset dir= '${Source.folder}' /> </zip> ...

Read More »

Using Gradle to Bootstrap your Legacy Ant Builds

apache-ant-logo

Gradle provides several different ways to leverage your existing investment in Ant, both in terms of accumulated knowledge and the time you’ve already put into build files. This can greatly facilitate the process of porting Ant built projects over to Gradle, and can give you a path for incrementally doing so. The Gradle documentation does a good job of describing ...

Read More »

TeamCity artifacts: HTTP, Ant, Gradle and Maven

apache-ant-logo

In how many ways can you retrieve TeamCity artifacts? I say plenty to choose from! If you’re in a world of Java build tools then you can use plain HTTP request, Ant + Ivy, Gradle and Maven to download and use binaries produced by TeamCity build configurations. How? Read on. Build Configuration “id” Before you retrieve artifacts of any build ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.