From: Josh S. <str...@gm...> - 2010-08-22 15:31:22
|
Using jarjar, I can put the jython lib into my jar file "sunshine.jar". I can crack open the jar file and see the 'org' directory and everything inside. I also have the __run__.py file sitting in the root of the jar file as this tutorial describes. http://wiki.python.org/jython/JythonFaq/DistributingJythonScripts I can go into my ./dist directory where the jar sits and run: java -cp sunshine.jar org.python.util.jython -jar sunshine.jar and it works, but I was wondering how to get the equivalent using an ant script. Currently I have: <target name="dist_run"> <!-- // from the dist dir... java -cp sunshine.jar org.python.util.jython -jar sunshine.jar --> <java classname="org.python.util.jython" fork="True"> <arg value="__run__.py"/> <classpath> <pathelement location="./dist/sunshine.jar"/> </classpath> </java> </target> but this just seems to sit there and I get no output from the program like I do directly running 'java'. |