diff options
author | William Deegan <bill@baddogconsulting.com> | 2018-10-16 23:11:56 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2018-10-16 23:11:56 (GMT) |
commit | bb22e5738126566b9e3ca826dfa2042e37ba59bd (patch) | |
tree | 553b3a64653bfbee6657499a47fa413e9169c164 /test/Java | |
parent | e422f8fa002b9cbe6fb5785c301cfc63d8843a99 (diff) | |
download | SCons-bb22e5738126566b9e3ca826dfa2042e37ba59bd.zip SCons-bb22e5738126566b9e3ca826dfa2042e37ba59bd.tar.gz SCons-bb22e5738126566b9e3ca826dfa2042e37ba59bd.tar.bz2 |
Fix logic which populates JAVAINCLUDES when javac is not found. Restore checks in some java tests to skip test if no javac and/or jar found
Diffstat (limited to 'test/Java')
-rw-r--r-- | test/Java/JAR.py | 4 | ||||
-rw-r--r-- | test/Java/JARCHDIR.py | 3 | ||||
-rw-r--r-- | test/Java/JARFLAGS.py | 4 | ||||
-rw-r--r-- | test/Java/source-files.py | 4 |
4 files changed, 15 insertions, 0 deletions
diff --git a/test/Java/JAR.py b/test/Java/JAR.py index 1eae9eb..d5425af 100644 --- a/test/Java/JAR.py +++ b/test/Java/JAR.py @@ -32,6 +32,10 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() +# Keep this logic because it skips the test if javac or jar not found. +where_javac, java_version = test.java_where_javac() +where_jar = test.java_where_jar() + test.write('myjar.py', r""" import sys args = sys.argv[1:] diff --git a/test/Java/JARCHDIR.py b/test/Java/JARCHDIR.py index e602fad..59bf082 100644 --- a/test/Java/JARCHDIR.py +++ b/test/Java/JARCHDIR.py @@ -38,6 +38,9 @@ import os import TestSCons test = TestSCons.TestSCons() +# Keep this logic because it skips the test if javac or jar not found. +where_javac, java_version = test.java_where_javac() +where_jar = test.java_where_jar() test.write('SConstruct', """ DefaultEnvironment(tools=[]) diff --git a/test/Java/JARFLAGS.py b/test/Java/JARFLAGS.py index e89d02b..39a0a6c 100644 --- a/test/Java/JARFLAGS.py +++ b/test/Java/JARFLAGS.py @@ -30,6 +30,10 @@ import TestSCons test = TestSCons.TestSCons() +# Keep this logic because it skips the test if javac or jar not found. +where_javac, java_version = test.java_where_javac() +where_jar = test.java_where_jar() + test.subdir('src') test.write('SConstruct', """ diff --git a/test/Java/source-files.py b/test/Java/source-files.py index ab395a0..e5cb8b6 100644 --- a/test/Java/source-files.py +++ b/test/Java/source-files.py @@ -35,6 +35,10 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() +# Keep this logic because it skips the test if javac or jar not found. +where_javac, java_version = test.java_where_javac() +where_jar = test.java_where_jar() + test.write('SConstruct', """ env = Environment(tools = ['javac', 'javah']) env.Java(target = 'class1', source = 'com/Example1.java') |