Martin Ritchie wrote:
Hi,Just wanted to point out the changes that have been made to the build system to utilise Python for generating the framing now breaks the builds for all of us using windows and cygwin. This is due to the use of the following: <exec executable="python"> <arg line="generate"/> <arg line="${generated.path}"/> <arg line="org.apache.qpidity"/> <arg line="${specs.dir}/amqp-transitional.0-10.xml"/> </exec> The windows mvn command picks up python from the cygwin environment which of course doesn't work. I encountered this problem when getting the python test suit to run as part of the standard build. As a result you must specify the correct command line i.e. bash -c 'python .... ' for the python test suite to run correctly under windows and cygwin. We as a project decided to use maven as a build system. Can we please ensure that for the java Qpid that all we need do is: download JDK download maven checkout Qpid Java type mvn and we are done. There should be no need to install ant or python or other tools. I shall put the work in the broker to convert the ant/python to Jython so that we can use maven but can the above python/ant pieces please be converted to Jython and so a pure maven solution.
I did make sure to test the generate script with Jython. It works fine with the 2.2 RC2 version of jython as long as you add the necessary from __future__ imports to python/mllib/dom.py. I'd be happy to do this if someone could give me some pointers on the right way to invoke jython from maven.
--Rafael
