- what directory is Ant executing the command in? Is it the same as from the command line?
I've already checked this one. - How is Ant passing the command line args? Is it the same as the shell would? I've tried both methods i.e. like the following: <arg value="-B"/> <arg value="-f"/> <arg value="psbase.mak"/> Either way, I get the same result. - Are there any environment variable that are missing when run through Ant? There should not be, but you never know. As for the environment variables, the documentation for "emake" is lacking, but it doesn't mention anything about environment variables, so I'm not entirely sure. I've contacted support for EurekaLog, but they simply told me they haven't heard of this issue as of yet. Is there anything else this could be? -----Original Message----- From: Robert Clark [mailto:[EMAIL PROTECTED] Sent: October 2, 2007 2:25 PM To: Steve Middleton Cc: user@ant.apache.org Subject: Re: Exec is failing, command line works fine On Tuesday October 2, 2007, "Steve Middleton" <[EMAIL PROTECTED]> wrote: > I'm having a problem with an executable that seems to work fine > from the command line, but does not work with the ant "exec" task. When I run into this, I generally look at 3 things: - what directory is Ant executing the command in? Is it the same as from the command line? - How is Ant passing the command line args? Is it the same as the shell would? - Are there any environment variable that are missing when run through Ant? There should not be, but you never know. The first two can be determined by running your Ant build script with the -d (for debug) command line option. That will tell you exactly what command Ant is executing under the hood. As a side note, I generally prefer to break up args into individual elements so there is no change of them being mis-parsed. So: <arg line="-B -f psbase.mak"/> would be <arg value="-B"/> <arg value="-f"/> <arg value="psbase.mak"/> but that's just a personal paranoia. - Rob --------------------------------------------------------------------- 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]