Execute failed in Ant
From: Eric Bresie (ebresie_at_usa.net)
Date: 02/19/04
- Next message: Berlin Brown: "Re: Java FTP Upload (ready2go-Example-Webpage)"
- Previous message: Brian Pipa: "Re: Java FTP Upload (ready2go-Example-Webpage)"
- Next in thread: Berlin Brown: "Re: Execute failed in Ant"
- Reply: Berlin Brown: "Re: Execute failed in Ant"
- Reply: Mike Schilling: "Re: Execute failed in Ant"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Feb 2004 15:47:03 -0800
Okay...I've seen lots of similar questions but no answers where I've
looked..
I have a build.xml file for ant which does an <exec> command which
runs an executable used in preprocessing of some products.
When I run the executable from a command line, the executable works
fine. When I execute it as part of ant, it fails giving me the
following error:
"Execute failed: java.io.IOException: <path to the execitable>: not
found"
I've heard some people indicate a similar problem is the result of
needing to have the java sdk item listed first in the path. This is
already the case.
I'm thinking maybe this is an environment variable issue. To execute
the preprocessing command under normal circumstances, I run a script
to set environment variables, then run the executable preprocessor.
I think what may be happening is that the environment space used by
ant does not match the environment space of when I call it from the
command line. Is there a way to use the existing environment variable
space from within ant?
Alternatively, could this be a permissions problem on something being
accessed by ant or my preprocessor?
My current build.xml command looks like the following:
<exec dir="${workdir}" executable="${tooldir}/preprocessor
SomeArgument"/>
I am using ant 1.5.3 on a Solaris 8 environment.
Eric
- Next message: Berlin Brown: "Re: Java FTP Upload (ready2go-Example-Webpage)"
- Previous message: Brian Pipa: "Re: Java FTP Upload (ready2go-Example-Webpage)"
- Next in thread: Berlin Brown: "Re: Execute failed in Ant"
- Reply: Berlin Brown: "Re: Execute failed in Ant"
- Reply: Mike Schilling: "Re: Execute failed in Ant"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|