ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: directory problems with exec
Date Sat, 02 Oct 2004 13:08:04 GMT
Paul,

sorry for the loooong delay.  I'm CCing you since you might have
unsubscribed in the meantime.

I think I see what's going on.

On Thu, 24 Jun 2004, Paul C. Reeves <pcreeve@sandia.gov> wrote:

> <exec executable = "make" dir = "${proj.build.dir}" 
>       newenvironment = "false"

and

> [MAKEFILE CODE]vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> PROG_DIR =`basename ${PWD}`
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

PWD is an environment variable and you inherit the one from the shell
running Ant, which still is in Ant's basedir.

Does it work if you change it to
MY_PWD =`pwd`
PROG_DIR =`basename ${MY_PWD}`

instead?

Stefan

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


Mime
View raw message