summaryrefslogtreecommitdiffstats
path: root/test/Java
diff options
context:
space:
mode:
Diffstat (limited to 'test/Java')
-rw-r--r--test/Java/jar_not_in_PATH.py3
-rw-r--r--test/Java/rmic_not_in_PATH.py8
2 files changed, 7 insertions, 4 deletions
diff --git a/test/Java/jar_not_in_PATH.py b/test/Java/jar_not_in_PATH.py
index 05bb9c8..b890ba1 100644
--- a/test/Java/jar_not_in_PATH.py
+++ b/test/Java/jar_not_in_PATH.py
@@ -41,7 +41,8 @@ test.write('SConstruct', """\
import os
oldpath = os.environ.get('PATH', '')
-env = Environment(ENV={'PATH': ['.']})
+DefaultEnvironment(tools=[])
+env = Environment(ENV={'PATH': ['.']}, tools=['javac', 'jar'])
env['ENV']['PATH'] = oldpath
env['JAR'] = r'%(_python_)s ./myjar.py'
env.Jar(target='test1.jar', source='test1.class')
diff --git a/test/Java/rmic_not_in_PATH.py b/test/Java/rmic_not_in_PATH.py
index ac3f28e..68a2c30 100644
--- a/test/Java/rmic_not_in_PATH.py
+++ b/test/Java/rmic_not_in_PATH.py
@@ -63,11 +63,13 @@ sys.exit(0)
test.write('SConstruct', """
import os
-oldpath = os.environ.get('PATH','')
-env = Environment(ENV = {'PATH' : ['.']})
+
+oldpath = os.environ.get('PATH', '')
+DefaultEnvironment(tools=[])
+env = Environment(ENV={'PATH': ['.']}, tools=['javac', 'rmic'])
env['ENV']['PATH'] = oldpath
env['RMIC'] = r'%(_python_)s myrmic.py'
-env.RMIC(target = 'outdir', source = 'test1.java')
+env.RMIC(target='outdir', source='test1.java')
""" % locals())
test.write('test1.java', """\