From a6614586c70b433077a3ae868499802d347486a4 Mon Sep 17 00:00:00 2001 From: fedepell Date: Mon, 4 Dec 2017 07:36:18 +0100 Subject: [PATCH] javaw: skip adding empty entries in CLASSPATH --- waflib/Tools/javaw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waflib/Tools/javaw.py b/waflib/Tools/javaw.py index bd000b17..3579512d 100644 --- a/waflib/Tools/javaw.py +++ b/waflib/Tools/javaw.py @@ -139,7 +139,8 @@ def set_classpath(self): """ Sets the CLASSPATH value on the *javac* task previously created. """ - self.env.append_unique('CLASSPATH', getattr(self, 'classpath', [])) + if getattr(self, 'classpath', None): + self.env.append_unique('CLASSPATH', getattr(self, 'classpath', [])) for x in self.tasks: x.env.CLASSPATH = os.pathsep.join(self.env.CLASSPATH) + os.pathsep