Skip to main content

Posts

Showing posts with the label Ant Script

How To Write a Build File Using ANT?

Introduction: This is an introductory tutorial to the Ant build tool, a free tool under GNU License and is available at http://jakarta.apache.org/ant/ . Ant allows the developer to automate the repeated process involved in the development of J2EE application. Developers can easily write the script to automate the build process like compilation, archiving and deployment. It is intended for people starting out with Ant and Java development, and aims to provide enough detail to get started.   What is Ant? Ant is a platform-independent scripting tool that lets you construct your build scripts in much the same fashion as the "make" tool in C or C++. You can use a large number of built-in tasks in Ant without any customization. Some of the most important tasks and related commands are built in the Ant distribution.

How To Resolve Build Errors While Running Ant Script?

As part of our project we have to deliver the EARs to the client. Usually we use Ant script to run the build.xml file. But this when we are running build.xml using ant script, we have faced the following error. The RAD / Eclipse console is show the following message stating that ·          “build\build.xml:251: Problem: failed to create task or type projectBuild” ,“Cause: The name is undefined” ·          Action: Check the spelling ·          Action: Check that any custom tasks/types have been declared. ·          Action: Check that any <presetdef>/<macrodef> declarations have taken place. See the exact error that displayed on RAD/Eclipse console