|
From: Zimmer, B. <Bri...@di...> - 2002-01-11 15:46:44
|
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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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>
=20
<target name=3D"jar" depends=3D"compile">
+ <!--
+ Some windows systems need the ${line.separator} or will
report a
+ "Failed to load Main-Class manifest attribute" error
+ -->
+ <echo file=3D"${outputDir}/mainClass.mf"
+ message=3D"Main-Class:
org.python.util.jython${line.separator}"/>
<jar jarfile=3D"jython.jar"
basedir=3D"${outputDir}"
+ manifest=3D"${outputDir}/mainClass.mf"
includes=3D"**/*.class,**/ucnhash.dat,**/*.properties" />
+ <delete file=3D"${outputDir}/mainClass.mf"/>
</target>
=20
<target name=3D"doc" depends=3D"init">
|