test = TestSCons.TestSCons()
-
test.write('myjar.py', r"""
import sys
args = sys.argv[1:]
test.write('SConstruct', """
env = Environment(tools = ['jar'],
JAR = r'%s myjar.py')
-env.Program(target = 'test2.jar', source = 'test2.CLASS')
+env.Jar(target = 'test2.jar', source = 'test2.CLASS')
""" % (python))
test.write('test2.CLASS', """\
test.run(arguments = '.', stderr = None)
- test.fail_test(test.read('test2' + _exe) != "test2.CLASS\nline 3\n")
+ test.fail_test(test.read('test2.jar') != "test2.CLASS\nline 3\n")
if not os.path.exists('/usr/local/j2sdk1.3.1/bin/javac'):
env = Environment(tools = ['javac'],
JAVAC = r'%s myjavac.py')
env.Java(target = '.', source = '.')
-""" % (python, python))
+""" % python)
test.write('test2.JAVA', """\
test2.JAVA
test.run(arguments = '.', stderr = None)
- test.fail_test(test.read('test2.class') != "test2.JAVA\nline3\n")
+ test.fail_test(test.read('test2.class') != "test2.JAVA\nline 3\n")
if not os.path.exists('/usr/local/j2sdk1.3.1/bin/javac'):