Makemytrip is hiring now.Go through the following URL for more info :makemyTrip
Makemytrip is hiring now.Go through the following URL for more info : attribute and can later be referred to by the value supplied to this. The value has to be unique.Task A Task does the work of the Ant script, such as running javac, java etc.
Each Ant build project mainly contains two segments .First one that property setting section that specifies the classpath, Base directory etc and the Second one actual targets.
Installing Ant
Check whether Ant installed on your machine by running the command “Ant” in the command prompt. If it outputs something like this you need install
Now try to run the “Ant -v“at the command prompt. It should output the version.
Additional Plugin Jars
Ant doesn’t support certain tasks or attributes that are often needed in easy developing of build scripts. For example the
Here we need “ant-contrib-0.2.jar”. Here is the pointer to the jar file
http://cvs.sourceforge.net/viewcvs.py/xmoon/struts-demo/WEB-INF/lib/ .
Note: The above jar doesn’t support trim attribute.
Basics of Ant Usage
By now assume Ant s properly installed and the Paths are set properly. Now lets see how it can be used.
Ant is usually executed at the command prompt. The following points demo the usage of
1) By just running the Ant at the command prompt, it assumes Build.xml as the default argument and tries to run the build.xml file located in the current directory.
i.e. Ant at command prompt is similar to “Ant Build.xml”
2) To run a user defined build file say build_abc.xml the ‘-buildfile’ option need to be used.
Ex: Ant -buildfile build_abc.xml
3) Now lets see how the targets inside the build file are called once we invoke the buildfile.The first target with which the execution to be started is usually said using the default attribute in the project definition tag.
Ex: - <project name="EnterpriseOne" default="dist" basedir=".">
In the above case default attribute says dist is the first target to be called by default. Ant will determine the flow among the targets based on the depends attribute specified in the dist target.
4) To call a specific target, the name of the target should be specified as an argument.
Ex:
1) “Ant execute” asks the Ant to start with target execute first.(This is for default build.xml)
2) “Ant –buildfile build_abc.xml execute”, means the target named execute is called first from the build_abc.xml.
More Info
Ant Resources
Ant Download