From: Finn B. <bc...@us...> - 2001-05-30 17:56:25
|
Update of /cvsroot/jython/jython/Tools/jythonc In directory usw-pr-cvs1:/tmp/cvs-serv23863 Modified Files: javac.py Log Message: compile(): Add quotes to the classpath value, but only on windows and java1.1. In JDK1.2 the VM will add the quotes itself. Index: javac.py =================================================================== RCS file: /cvsroot/jython/jython/Tools/jythonc/javac.py,v retrieving revision 2.12 retrieving revision 2.13 diff -C2 -r2.12 -r2.13 *** javac.py 2001/02/07 16:52:42 2.12 --- javac.py 2001/05/30 08:44:25 2.13 *************** *** 77,81 **** cpath.append(sourcedir) cpath.extend(sys.path) ! cpath = '"%s"' % sep.join(cpath) cmd.extend([cpathopt, cpath]) cmd.extend(files) --- 77,84 ---- cpath.append(sourcedir) cpath.extend(sys.path) ! cpath = sep.join(cpath) ! if System.getProperty("os.name")[:7] == 'Windows' and \ ! System.getProperty("java.version") < "1.2": ! cpath = '"%s"' % cpath cmd.extend([cpathopt, cpath]) cmd.extend(files) |