mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 19:30:04 +01:00
Prevent duplicate paths when adding from user classpath #2084
This commit is contained in:
parent
384e8d85ba
commit
a5a3915b7a
@ -139,7 +139,7 @@ def set_classpath(self):
|
||||
"""
|
||||
Sets the CLASSPATH value on the *javac* task previously created.
|
||||
"""
|
||||
self.env.append_value('CLASSPATH', getattr(self, 'classpath', []))
|
||||
self.env.append_unique('CLASSPATH', getattr(self, 'classpath', []))
|
||||
for x in self.tasks:
|
||||
x.env.CLASSPATH = os.pathsep.join(self.env.CLASSPATH) + os.pathsep
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user