db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Myrna van Lunteren <m.v.lunte...@gmail.com>
Subject Re: Problem with release build
Date Mon, 26 Nov 2012 19:27:38 GMT
On Mon, Nov 26, 2012 at 11:02 AM, Myrna van Lunteren
<m.v.lunteren@gmail.com> wrote:
> On Mon, Nov 26, 2012 at 10:48 AM, Myrna van Lunteren
> <m.v.lunteren@gmail.com> wrote:
>> On Sun, Nov 25, 2012 at 4:37 PM, Lily Wei <lilyweiderby@gmail.com> wrote:
>>> Hi:
>>>      When I tried to build the release with the release target, it failed on
>>> target 'builduserdocs' with error:
>>> Execute failed: java.io.IOException: Cannot run pr
>>> ogram "ant" (in directory "c:\derby\docs\10.9"): CreateProcess error=2, The
>>> syst
>>> em cannot find the file specified
>>>       I can reproduce this with only doing 'ant builduserdocs' from the
>>> source root.
>>> Please see verbose output attached:
>>>       Any suggestion on what is wrong with my environment to find executable
>>> 'ant' to build builduserdocs?
>>> Thanks,
>>> Lily
>> The only suggestion I have is to make sure that your dos command path
>> includes the directory for ant. According to this page:
>> http://ant.apache.org/manual/Tasks/exec.html
>> on windows the <exec> task gets passed on to the windows system. So
>> you need to be able to do e.g. ant -version from a dos command, not
>> just from cygwin, or other shell tool...
>> HTH
>> Myrna
> That same ant manual page also suggests you may not be able to execute
> ant.bat directly. So perhaps we've been lucky it works under cygwin
> and the target needs to get modified to something like
>   <exec executable="cmd" dir="${docs.root}>
>      <arg value="/c"/>
>     <arg value="ant.bat"/>
>     <arg value="-p"/>
>   </exec>
> Myrna

One more attempt...
I had forgotten, but I ran into this for the 10.8.2 release.
That's why there's a difference between build.xml for 10.9 and 10.8.
10.8 calls ant.bat specifically, 10.9 calls 'ant'.
This is documented in DERBY-5462. The better fix would likely be
something that  checks the OS and switches the ant call...
Apologies for not remembering sooner!


View raw message