Mark generated directories as generated in IDEA projects
authorPeter Donald <peter@realityforge.org>
Wed, 23 Sep 2015 05:11:15 +0000 (15:11 +1000)
committerPeter Donald <peter@realityforge.org>
Wed, 23 Sep 2015 05:11:15 +0000 (15:11 +1000)
addon/buildr/jaxb_xjc.rb
addon/buildr/wsgen.rb

index de7b04c..bb6ec28 100644 (file)
@@ -50,7 +50,7 @@ module Buildr
       target_dir = File.expand_path(options[:directory] || _(:target, :generated, :jaxb, 'main/java'))
       timestamp_file = File.expand_path("#{target_dir}/jaxb-#{options[:id] || 1}.cache")
 
-      project.iml.main_source_directories << target_dir if project.iml?
+      project.iml.main_generated_source_directories << target_dir if project.iml?
 
       file(target_dir => timestamp_file)
 
index 6c440a0..0d04d6d 100644 (file)
@@ -43,7 +43,7 @@ module Buildr
         project.task("java2wsdl").enhance([project.compile.target])
 
         base_wsdl_dir = File.expand_path(options[:output_dir] || project._(:target, :generated, :wsgen, :main, :wsdl))
-        project.iml.main_source_directories << base_wsdl_dir if project.iml?
+        project.iml.main_generated_source_directories << base_wsdl_dir if project.iml?
         project.file(base_wsdl_dir)
         project.task("java2wsdl").enhance([base_wsdl_dir])
 
@@ -182,7 +182,7 @@ module Buildr
         end
 
         project.compile.from ws_dir
-        project.iml.main_source_directories << ws_dir if project.iml?
+        project.iml.main_generated_source_directories << ws_dir if project.iml?
         project.compile.enhance(['wsdl2java'])
 
         ws_dir