summaryrefslogtreecommitdiffstats
path: root/test/Java/JARCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Java/JARCOM.py')
-rw-r--r--test/Java/JARCOM.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/test/Java/JARCOM.py b/test/Java/JARCOM.py
index 9d93ba5..9146445 100644
--- a/test/Java/JARCOM.py
+++ b/test/Java/JARCOM.py
@@ -35,20 +35,11 @@ _python_ = TestSCons._python_
test = TestSCons.TestSCons()
-
-test.write('myjar.py', r"""
-import sys
-outfile = open(sys.argv[1], 'wb')
-for f in sys.argv[2:]:
- infile = open(f, 'rb')
- for l in [l for l in infile.readlines() if l != '/*jar*/\n']:
- outfile.write(l)
-sys.exit(0)
-""")
+test.file_fixture('mycompile.py')
test.write('SConstruct', """
env = Environment(TOOLS = ['default', 'jar'],
- JARCOM = r'%(_python_)s myjar.py $TARGET $SOURCES')
+ JARCOM = r'%(_python_)s mycompile.py jar $TARGET $SOURCES')
env.Jar(target = 'test1', source = ['file1.in', 'file2.in', 'file3.in'])
""" % locals())
@@ -60,8 +51,6 @@ test.run()
test.must_match('test1.jar', "file1.in\nfile2.in\nfile3.in\n")
-
-
test.pass_test()
# Local Variables: