ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Miranda <>
Subject Re: ANT for dummies
Date Sun, 30 May 2010 21:31:37 GMT
Dear Bruce and Glenn,

Thank you very much for your answers. I want to install the 1.8.1 version of 
Ant in Mac OS X version 10.4.11.  Running  java -version in a terminal gives

"java version 1.5.0_19"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)

Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)

 I managed to set the environment variables and got Ant installed. I 
executed the command ant -f fetch.xml -Ddest=system to get the library 
dependencies. This finished with a message



Total time: 2minutes 32 seconds

After this, the Ant manual says to change into the installation directory 
set the JAVA_HOME environment variable to the directory where JDK is 
installed and execute the command

sh -Ddist.dir=<directory_to_contain_Ant_distribution> dist

I have Ant in /Applications/ant so I typed

sh -Ddist.dir=/Applications/ant dist

The result is: No such file or directory.

I guess this may seem to be a trivial thing for most of you but it is taking 
the toll on me. I  a great believe I would appreciate your advice to have 
Ant built.

Thanks a lot


----- Original Message ----- 
From: "Bruce Atherton" <>
To: <>
Sent: Sunday, May 30, 2010 8:28 PM
Subject: Re: ANT for dummies

> As the manual says, the details of the short story are available in the 
> rest of the document. In particular, most of the list items in the short 
> story have a link that leads you to details about that step. If you want 
> to know what dest=system represents (many don't and describing it would 
> just be noise for them), then follow the link on that list item[1].
> The fetch.xml has been around a while and has been mentioned in some 
> portions of the Ant documentation, but it has only very recently been 
> brought into the installing Ant section of the manual. Previously, the 
> manual suggested that users manually download each of the library 
> dependencies for tasks that they are interested in. Hopefully the change 
> will make it easier for users to use more of the tasks available.
> The fetch.xml is in the ANT_HOME directory which should be the current 
> directory. That detail should probably be added to the manual.
> [1]
> On 30/05/2010 5:18 AM, glenn opdycke-hansen wrote:
>> To install Ant, follow the instructions at
>> Bruce had more information on this above.
>> I did notice that there is an extra step:
>> 5. Optionally, run ant -f fetch.xml -Ddest=system to get the library
>>> dependencies of most of the Ant optional tasks. If you don't do this, 
>>> many
>>> of the optional Ant tasks will not be available. See Optional 
>>> Tasks<#optionalTasks>  for
>>> details and other options for the -Ddest parameter.
>> What is "system"? Is it replaced with the ant home?  Or is it a literal?
>> Is this step new with 1.8?
>> Where is the fetch.xml script?
>> Does current directory need to be set?
>> <>
>> --glenn
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message