|
From: Phil S. <psu...@es...> - 2002-01-11 16:34:45
|
I'd like this very much.
<hobby_horse>
It would also be very nice if the standard
python libraries could be included in the
jar and accessible when you run jython -jar.
</hobby_horse>
-----Original Message-----
From: Zimmer, Brian [mailto:Bri...@di...]
Sent: Friday, January 11, 2002 10:46 AM
To: jyt...@li...
Subject: [Jython-dev] proposal: making jython.jar executable
Does anyone have objections to making jython.jar an executable jar? It
requires a specialized manifest file which the enclosed patch to
build.xml creates. This would mean one could start jython with:
java -jar jython.jar
The existing batch files or shell scripts would continue to work just
fine. I am proposing this because a couple people have asked recently.
thanks,
brian
Index: build.xml
===================================================================
RCS file: /cvsroot/jython/jython/build.xml,v
retrieving revision 1.25
diff -c -r1.25 build.xml
*** build.xml 2001/12/02 19:57:44 1.25
--- build.xml 2002/01/11 15:38:41
***************
*** 209,217 ****
--- 209,225 ----
</target>
<target name="jar" depends="compile">
+ <!--
+ Some windows systems need the ${line.separator} or will
report a
+ "Failed to load Main-Class manifest attribute" error
+ -->
+ <echo file="${outputDir}/mainClass.mf"
+ message="Main-Class:
org.python.util.jython${line.separator}"/>
<jar jarfile="jython.jar"
basedir="${outputDir}"
+ manifest="${outputDir}/mainClass.mf"
includes="**/*.class,**/ucnhash.dat,**/*.properties" />
+ <delete file="${outputDir}/mainClass.mf"/>
</target>
<target name="doc" depends="init">
_______________________________________________
Jython-dev mailing list
Jyt...@li...
https://lists.sourceforge.net/lists/listinfo/jython-dev
|