2
0
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:
Thomas Nagy 2017-11-30 19:55:48 +01:00
parent 384e8d85ba
commit a5a3915b7a
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -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