Tag Archives: Apache Ant

Maven~Software Tool for Project Management and Builds Automation

Maven is a software tool for project management and builds automation. While primarily used for Java programming, it can also be used to build and manage projects written in C#, Ruby, Scala, and other languages. Maven is the standard way … Continue reading

Posted in Java, Maven | Tagged , , , , , , , , , | 8 Comments

Checkstyle~A static code analysis tool

Really big projects require the input of hundreds of programmers, often geographically dispersed and with great differences in skill level. Code reviews are essential to code quality, but no team wants to review tens of thousands of lines of code, … Continue reading

Posted in Java | Tagged , , , , , , , , , , , , , | 5 Comments

Sample Ant Build

Your first ANT build  <!–?xml version=”1.0″?> <project name=”Ant test project” default=”build” basedir=”.”> <target name=”build” > <javac srcdir=”src” destdir=”build/src” debug=”true” includes=”**/*.java“/> </target> </project> First line of the build.xml file represents the document type declaration.  Second line is comment entry. Third line … Continue reading

Posted in Ant, How To..., Java | Tagged , , , , , , , , | 4 Comments

Writing Custom Task in Ant

Writing Own Task Create a Java class that extends org.apache.tools.ant.Task For each attribute, write a setter method that is public void and takes a single argument Write a public void execute() method, with no arguments, that throws a BuildException — … Continue reading

Posted in Ant, How To..., Java | Tagged , , , , , , , , , , , , , | 4 Comments

Introduction to ANT

Introduction to ANT Apache Ant is a powerful way to convert your developmental structures to deployment structures. It is declarative and all the command line tasks used for deploying an application are represented by simple XML elements. A Java-based build … Continue reading

Posted in Ant, Java, What is? | Tagged , , , , , , , , , , | 5 Comments

How to install Ant?

Installing ANT •             Download Ant binary distribution from:                 Download •             Set ANT_HOME to where you installed Ant •             Include $ANT_HOME/bin in PATH •             Make sure JAVA_HOME is set to point to JDK After successful installation of Ant, run ant … Continue reading

Posted in Ant, Java | Tagged , , , , , , , , , , , , , | 5 Comments

Command Line Arguments in Ant

Command Line Arguments -buildfile buildfile – specify build file to use -targetname – specify target to run (instead of running default) -verbose, -quiet, -debug – Allows control over the logging information Ant outputs -logger classname – Allows user to specify … Continue reading

Posted in Ant, Java | Tagged , , , , , , , , , , , | 4 Comments

How ANT works?

How ANT works? Each Project will have a build file (build.xml) Each build file will contain one or more Targets The Target to be executed:                 Is either explicitly selected on the command line                 Or a project default Target … Continue reading

Posted in Ant, Java | Tagged , , , , , , , , , , , , | 6 Comments

Built-in Tasks in Ant

Java™ Application Development on Linux® – Free 599 Page eBook Enterprise Java Virtualization: Understanding the TCO Implications InfoWorld’s Java IDE Comparison Strategy Guide: Java Essential Training Apache Jakarta Commons: Reusable Java™ Components Enabling Rapid ROI: With Java™ – Based Business … Continue reading

Posted in Ant, Java | Tagged , , , , , , , , , , , , , , | 3 Comments

ANT Overview, Structure & Basics (Build File)

ANT Overview, Structure & Basics (Build File) Each Project will have a build file (build.xml) Default name for a build file is build.xml Root element must be the ‘project’ element The ‘default’ attribute is required Specifies the default target to … Continue reading

Posted in Ant, Java | Tagged , , , , , , , , , , , , , , | 4 Comments