You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Tiago Veloso <ti...@gmail.com> on 2011/03/14 15:08:32 UTC

Problems with apache.

Hi everyone,

I am running Mac OS 10.6.6. Here I have apache ant 1.7.0 installed.

I am trying to update to ant 1.8.2.

But every way I have tried to install ant 1.8.2 I always get ant 1.7.0.

I have even tried installing through MacPorts without success. 

Tiago Veloso
ti.veloso@gmail.com




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Problems with apache.

Posted by Tiago Veloso <ti...@gmail.com>.
I solved it. It turned out it was a problem with my classpath. 

I had a ant-1.7.0.jar in my classpath, and that was conflicting with my installation.

On Mar 14, 2011, at 15:01 , wolfgang haefelinger wrote:

> Try also 'type -a'. For example, on my machine
> 
> $ type -a ant
> ant is /opt/local/bin/ant
> ant is /usr/bin/ant
> 
> Then run the one supposed to be 1.8.2.  If this still runs 1.7.2, try
> something like
> 
> /bin/sh -x /path/to/ant/bin/ant [args]
> 
> to see what actually happens.
> 
> // Wolfgang
> 
> On Mon, Mar 14, 2011 at 3:29 PM, Antoine Levy-Lambert <an...@gmx.de> wrote:
>> Hello Tiago,
>> 
>> please check what the value of ANT_HOME is. A version of ant is shipping
>> with MacOS with a script under /usr/bin/ant if I remember correctly.
>> You should add these lines to your .profile
>> 
>> export ANT_HOME=[install location of ANT 1.8.2]
>> export PATH=$ANT_HOME/bin:$PATH
>> 
>> changing the path may not be absolutely necessary but setting ANT_HOME
>> certainly.
>> 
>> Regards,
>> 
>> Antoine
>> 
>> On 3/14/2011 10:12 AM, Tiago Veloso wrote:
>>> 
>>> An error with the subject, it should read "Problems with apache ant"
>>> 
>>> On Mar 14, 2011, at 14:08 , Tiago Veloso wrote:
>>> 
>>>> Hi everyone,
>>>> 
>>>> I am running Mac OS 10.6.6. Here I have apache ant 1.7.0 installed.
>>>> 
>>>> I am trying to update to ant 1.8.2.
>>>> 
>>>> But every way I have tried to install ant 1.8.2 I always get ant 1.7.0.
>>>> 
>>>> I have even tried installing through MacPorts without success.
>>>> 
>>>> Tiago Veloso
>>>> ti.veloso@gmail.com
>>>> 
>>>> 
>>>> 
>>> Tiago Veloso
>>> ti.veloso@gmail.com
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>> 
>> 
> 
> 
> 
> -- 
> Wolfgang Häfelinger
> häfelinger IT - Applied Software Architecture
> http://www.haefelinger.it
> +31 648 27 61 59
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Tiago Veloso
ti.veloso@gmail.com




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Problems with apache.

Posted by wolfgang haefelinger <wh...@gmail.com>.
Try also 'type -a'. For example, on my machine

$ type -a ant
ant is /opt/local/bin/ant
ant is /usr/bin/ant

Then run the one supposed to be 1.8.2.  If this still runs 1.7.2, try
something like

/bin/sh -x /path/to/ant/bin/ant [args]

to see what actually happens.

// Wolfgang

On Mon, Mar 14, 2011 at 3:29 PM, Antoine Levy-Lambert <an...@gmx.de> wrote:
> Hello Tiago,
>
> please check what the value of ANT_HOME is. A version of ant is shipping
> with MacOS with a script under /usr/bin/ant if I remember correctly.
> You should add these lines to your .profile
>
> export ANT_HOME=[install location of ANT 1.8.2]
> export PATH=$ANT_HOME/bin:$PATH
>
> changing the path may not be absolutely necessary but setting ANT_HOME
> certainly.
>
> Regards,
>
> Antoine
>
> On 3/14/2011 10:12 AM, Tiago Veloso wrote:
>>
>> An error with the subject, it should read "Problems with apache ant"
>>
>> On Mar 14, 2011, at 14:08 , Tiago Veloso wrote:
>>
>>> Hi everyone,
>>>
>>> I am running Mac OS 10.6.6. Here I have apache ant 1.7.0 installed.
>>>
>>> I am trying to update to ant 1.8.2.
>>>
>>> But every way I have tried to install ant 1.8.2 I always get ant 1.7.0.
>>>
>>> I have even tried installing through MacPorts without success.
>>>
>>> Tiago Veloso
>>> ti.veloso@gmail.com
>>>
>>>
>>>
>> Tiago Veloso
>> ti.veloso@gmail.com
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
Wolfgang Häfelinger
häfelinger IT - Applied Software Architecture
http://www.haefelinger.it
+31 648 27 61 59

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Problems with apache.

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Tiago,

please check what the value of ANT_HOME is. A version of ant is shipping 
with MacOS with a script under /usr/bin/ant if I remember correctly.
You should add these lines to your .profile

export ANT_HOME=[install location of ANT 1.8.2]
export PATH=$ANT_HOME/bin:$PATH

changing the path may not be absolutely necessary but setting ANT_HOME 
certainly.

Regards,

Antoine

On 3/14/2011 10:12 AM, Tiago Veloso wrote:
> An error with the subject, it should read "Problems with apache ant"
>
> On Mar 14, 2011, at 14:08 , Tiago Veloso wrote:
>
>> Hi everyone,
>>
>> I am running Mac OS 10.6.6. Here I have apache ant 1.7.0 installed.
>>
>> I am trying to update to ant 1.8.2.
>>
>> But every way I have tried to install ant 1.8.2 I always get ant 1.7.0.
>>
>> I have even tried installing through MacPorts without success.
>>
>> Tiago Veloso
>> ti.veloso@gmail.com
>>
>>
>>
> Tiago Veloso
> ti.veloso@gmail.com
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Problems with apache.

Posted by Tiago Veloso <ti...@gmail.com>.
An error with the subject, it should read "Problems with apache ant"

On Mar 14, 2011, at 14:08 , Tiago Veloso wrote:

> Hi everyone,
> 
> I am running Mac OS 10.6.6. Here I have apache ant 1.7.0 installed.
> 
> I am trying to update to ant 1.8.2.
> 
> But every way I have tried to install ant 1.8.2 I always get ant 1.7.0.
> 
> I have even tried installing through MacPorts without success. 
> 
> Tiago Veloso
> ti.veloso@gmail.com
> 
> 
> 

Tiago Veloso
ti.veloso@gmail.com




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org