diff options
author | William Deegan <bill@baddogconsulting.com> | 2021-11-04 04:15:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 04:15:48 (GMT) |
commit | a0549a19a81232a395904bb260a8259b75d94399 (patch) | |
tree | 4ca3c89e312adc81ed9ed049f2163ad41f9ab60f /test/Java/source-files.py | |
parent | 3dfbbea945e615b972c3909af963248e1d676a70 (diff) | |
parent | 1a04e66fdbe9dd5b088c337fa04f66f403dde2ad (diff) | |
download | SCons-a0549a19a81232a395904bb260a8259b75d94399.zip SCons-a0549a19a81232a395904bb260a8259b75d94399.tar.gz SCons-a0549a19a81232a395904bb260a8259b75d94399.tar.bz2 |
Merge branch 'master' into regenerate-build.ninja
Diffstat (limited to 'test/Java/source-files.py')
-rw-r--r-- | test/Java/source-files.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/test/Java/source-files.py b/test/Java/source-files.py index e5cb8b6..23e5ebc 100644 --- a/test/Java/source-files.py +++ b/test/Java/source-files.py @@ -1,6 +1,8 @@ #!/usr/bin/env python # -# __COPYRIGHT__ +# MIT License +# +# Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -20,9 +22,6 @@ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# - -__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" """ Verify that we can pass the Java() builder explicit lists of .java @@ -31,8 +30,6 @@ files as sources. import TestSCons -_python_ = TestSCons._python_ - test = TestSCons.TestSCons() # Keep this logic because it skips the test if javac or jar not found. @@ -40,10 +37,10 @@ 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') -env.Java(target = 'class2', source = ['com/Example2.java', 'com/Example3.java']) -""" % locals()) +env = Environment(tools=['javac']) +env.Java(target='class1', source='com/Example1.java') +env.Java(target='class2', source=['com/Example2.java', 'com/Example3.java']) +""") test.subdir('com', 'src') |