2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 03:39:53 +01:00

Allow numbers for Java compat attribute (#1899)

Force the java "compat" parameter as a string.
This commit is contained in:
DigitalDan05 2017-01-24 13:51:29 -06:00 committed by ita1024
parent 823ad57b89
commit fcb95f4532

View File

@ -95,7 +95,7 @@ def apply_java(self):
tsk.srcdir = tmp
if getattr(self, 'compat', None):
tsk.env.append_value('JAVACFLAGS', ['-source', self.compat])
tsk.env.append_value('JAVACFLAGS', ['-source', str(self.compat)])
if hasattr(self, 'sourcepath'):
fold = [isinstance(x, Node.Node) and x or self.path.find_dir(x) for x in self.to_list(self.sourcepath)]