I have got some answers from my MacOSX/Eclipse user :
(The full path for xgettext is /usr/local/bin/xgettext)

The result of executing the build from Eclipse when priniting env.PATH :
- PATH: /usr/bin:/bin:/usr/sbin:/sbin

But he also added a <exec> task for "which" :
<exec executable="which" dir="${src.dir}"
  failonerror="false" failifexecutionfails="false">
    <arg value="xgettext"/>
  </exec>
Result: /usr/local/bin/xgettext
And same kind of test for a non existing executable ("nonsense") :
no nonsense in . /usr/local/NMRPipe/nmrbin.mac /usr/local/NMRPipe/special /usr/local/NMRPipe/com /usr/local/CPMD /usr/local/g03 /opt/ibmcmp/xlf/8.1/bin /Users/rkanters/bin /usr/local/bin /usr/local/mysql/bin /usr/bin /bin /usr/sbin /sbin /usr/local/NMRPipe/dynamo/tcl

In conclusion, it's very strange :
- PATH does not contain the full list of paths
- but if you execute "which" from inside the build, "which" has the correct list of paths.

Any more idea ?

[EMAIL PROTECTED] wrote:

More interesting is the path, Ant has

<propery environment="env"/>
<echo>PATH: ${env.PATH}</echo>

Jan

-----Ursprüngliche Nachricht-----
Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 29. September 2005 10:03
An: Ant Users List
Betreff: RE: <exec> problem under Mac OS X + Eclipse


Hi,

on Windows Shell it's >path

on UNIX you'll get the path
via
shell >echo $PATH
or
shell >set and you'll get
PATH= ... beside all other stuff set on that machine

i think it's similar to unix on mac
Eclipse =

all non standard stuff, f.e. extra ant tasks, has to be made available for ant via
Window|Preferences|Ant|Runtime|Global Entries

Gilbert

-----Original Message-----
From: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 9:06 AM
To: Ant Users List
Subject: Re: <exec> problem under Mac OS X + Eclipse



[EMAIL PROTECTED] wrote:

Let the MacOSX/Eclipse user print the path. Is xgettext in that?
Maybe the path is not propagated.

Ok, so stupid question: how do I print the path ?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to