On 11/26/2012 7:00 AM, Lily Wei wrote:
      When I tried to build the release with the release target, it
failed on target 'builduserdocs' with error:
BUILD FAILED
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?

Hi Lily,

Looking at the target, the problem I think comes here:
   <exec executable="ant.bat" dir="${docs.root}">
     <env key="ANT_OPTS" value="-Xmx512m"/>
     <env key="CLASSPATH" path="${docs.root}/lib/fop.jar"/>
     <arg value="-Drelease.id.short=${eversion}"/>
     <arg value="-Drelease.id.long=${release.id.long}"/>
     <arg value="-Dcopyright.year=${copyright.year}"/>
     <arg value="-Dsubversion.revision=${changenumber}"/>
     <arg value="all"/>


I have seen postings indicating that there may be a problem with invoking a batch file vs an exe with exec, although I have not seen this particular problem with cygwin.

http://stackoverflow.com/questions/10591105/ant-cannot-find-phpunit

I wonder can you explicitly use ant.bat in your git shell? Maybe you will need to install cygwin or perhaps there is a way to break the super release target up into parts rather than using the super release target.

Kathey




Reply via email to