Peter,
It did the trick. My basedir was set to "E:\" (call it legacy from WinNt). I've
set it to "/", and the "ls" exec worked, and not the least the javadoc command
I'm after.
Thanks a lot.
Christian Noel
PS: If you have time, I'm currious, what's this issue you seem to mentionned in
your email, i.e. 'unless this has been fixed yet'?
Peter Donald wrote:
> Just a question -whats the basedir of your project? If it is not "." there
> could be some issues with javadoc (unless this has been fixed yet?). One
> thing though could you tell me if the following works?
>
> <exec executable="/bin/ls">
> <env key="PATH" path="/bin"/>
> <arg value="."/>
> </exec>
>
> On Fri, 22 Jun 2001 11:27, Christian Noel wrote:
> > This is a follow up on my previous posting, "Javadoc IOException"
> >
> > I did some more testing and the following target code generates the same
> > kind of exception I mentionned previously (i.e. when trying to execute a
> > javadoc command). Note that this was run on Solaris 5.6, JDK1.3, ANT1.3.
> >
> > Again any help would be greatly appreciated
> >
> > Thanks
> >
> > Christian Noel
> >
> > ** XML code **
> > <exec executable="ls">
> > <env key="PATH" path="/bin"/>
> > <arg value="."/>
> > </exec>
> >
> > ** OUTPUT ***
> > [exec] /vobs/ost/build.xml:68: Execute failed: java.io.IOException:
> > No such
> > file or directory
> > [exec] --- Nested Exception ---
> > [exec] java.io.IOException: No such file or directory
> > [exec] at java.lang.UNIXProcess.forkAndExec(Native Method)
> > [exec] at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
>
> --
> Cheers,
>
> Pete
>
> *-----------------------------------------------------*
> | "Faced with the choice between changing one's mind, |
> | and proving that there is no need to do so - almost |
> | everyone gets busy on the proof." |
> | - John Kenneth Galbraith |
> *-----------------------------------------------------*