This is the mail archive of the
cygwin
mailing list for the Cygwin project.
1.7.5: ant no longer finds python: upgrade from 1.5 suspected
- From: "Bill Ross" <bross at adbrite dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 14 Jun 2010 16:35:36 -0700
- Subject: 1.7.5: ant no longer finds python: upgrade from 1.5 suspected
Could ant be thrown off by a 1.7 upgrade? The upgrade is the only big change since things were last working, and another person who upgraded is showing the same symptom (no one else handy to compare with).
An ant build setup no longer finds python. It seems like it used cygwin's python before, but ant can't find python now. The cmd line that worked before is given below, plus a small test case.
-bash-3.2$ ant dist
?[...]
??? C:\svn\trunk\tools\build\wsdl\build.xml:60: Execute failed: java.io.IOException: Cannot run program "python":
??? ?CreateProcess error=2, The system cannot find the file specified
See build.xml testcase below. Same result with "python" and "python.exe".
-bash-3.2$ which ant
/cygdrive/c/Program Files/Apache Software Foundation/apache-ant-1.7.1/bin/ant
-bash-3.2$ which python
/bin/python
======= build.xml ('ant dist' to reproduce)
<?xml version="1.0"?><!-- -*- indent-tabs-mode: nil; -*- -->
<project name="test_python" default="dist">
? <target name="dist">
????? <exec executable="python">
??????? <arg value="test.py"/>
????? </exec>
? </target>
</project>
==========
Bill
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple