Repository: buildr
Updated Branches:
  refs/heads/master e76d3b25c -> 0d346b9c6


Mark generated directories as generated in IDEA projects


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/0d346b9c
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/0d346b9c
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/0d346b9c

Branch: refs/heads/master
Commit: 0d346b9c6576baa8e23a011eaf01bace6b4ee831
Parents: e76d3b2
Author: Peter Donald <[email protected]>
Authored: Wed Sep 23 15:11:15 2015 +1000
Committer: Peter Donald <[email protected]>
Committed: Wed Sep 23 15:11:15 2015 +1000

----------------------------------------------------------------------
 addon/buildr/jaxb_xjc.rb | 2 +-
 addon/buildr/wsgen.rb    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/0d346b9c/addon/buildr/jaxb_xjc.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/jaxb_xjc.rb b/addon/buildr/jaxb_xjc.rb
index de7b04c..bb6ec28 100644
--- a/addon/buildr/jaxb_xjc.rb
+++ b/addon/buildr/jaxb_xjc.rb
@@ -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)
 

http://git-wip-us.apache.org/repos/asf/buildr/blob/0d346b9c/addon/buildr/wsgen.rb
----------------------------------------------------------------------
diff --git a/addon/buildr/wsgen.rb b/addon/buildr/wsgen.rb
index 6c440a0..0d04d6d 100644
--- a/addon/buildr/wsgen.rb
+++ b/addon/buildr/wsgen.rb
@@ -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

Reply via email to