Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Ant on Cygwin

Tags:

I'm having some trouble figuring out how to install Ant on Cygwin. I want to use Ant to build Nutch. I've looked through a bunch of tutorials but I can't find anything that is low level enough for me to understand. I need something like...

  1. Download ant, put it here
  2. Open Cygwin
  3. type "export ANT_HOME=..."
  4. ...

Can anyone help me out here?

like image 768
Dan Snyder Avatar asked Oct 04 '10 20:10

Dan Snyder


People also ask

How do you check ant is installed or not?

Check your installation by opening a command line and typing ant -version into the commend line. The system should find the command ant and show the version number of your installed Ant version.

How do I run an Ant file from command prompt?

To run the ant build file, open up command prompt and navigate to the folder, where the build. xml resides, and then type ant info. You could also type ant instead. Both will work,because info is the default target in the build file.


1 Answers

Assuming you have a JDK already installed, you can do this:

$ export ANT_HOME=/cygdrive/c/apache-ant-1.7.1 

which assumes you've unzipped Ant into C:\apache-ant-1.7.1. Then:

$ export PATH=$ANT_HOME/bin:$PATH $ ant -version Apache Ant version 1.7.1 compiled on June 27 2008 
like image 84
Richard Fearn Avatar answered Nov 01 '22 19:11

Richard Fearn