Only add files to source path if the exist
authorPeter Donald <peter@realityforge.org>
Fri, 27 Nov 2015 07:06:25 +0000 (18:06 +1100)
committerPeter Donald <peter@realityforge.org>
Fri, 27 Nov 2015 07:06:25 +0000 (18:06 +1100)
addon/buildr/checkstyle.rb

index 97843b5..011b0a7 100644 (file)
@@ -50,7 +50,7 @@ module Buildr
         args << format
         args << '-o'
         args << output_file
-        args += source_paths
+        args += source_paths.select { |p| File.exist?(p) }
 
         begin
           touch output_file