From a5a3915b7a4ef4465c256eff64f28021352c8bb2 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Thu, 30 Nov 2017 19:55:48 +0100 Subject: [PATCH] Prevent duplicate paths when adding from user classpath #2084 --- waflib/Tools/javaw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Tools/javaw.py b/waflib/Tools/javaw.py index ee7179cd..bd000b17 100644 --- a/waflib/Tools/javaw.py +++ b/waflib/Tools/javaw.py @@ -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