mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Allow numbers for Java compat attribute (#1899)
Force the java "compat" parameter as a string.
This commit is contained in:
parent
823ad57b89
commit
fcb95f4532
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user