You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/10/17 19:02:10 UTC

svn commit: r1533157 - /buildr/trunk/addon/buildr/jaxb_xjc.rb

Author: donaldp
Date: Thu Oct 17 17:02:10 2013
New Revision: 1533157

URL: http://svn.apache.org/r1533157
Log:
Ensure that the directory for generated source code is added to the idea project directory

Modified:
    buildr/trunk/addon/buildr/jaxb_xjc.rb

Modified: buildr/trunk/addon/buildr/jaxb_xjc.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/addon/buildr/jaxb_xjc.rb?rev=1533157&r1=1533156&r2=1533157&view=diff
==============================================================================
--- buildr/trunk/addon/buildr/jaxb_xjc.rb (original)
+++ buildr/trunk/addon/buildr/jaxb_xjc.rb Thu Oct 17 17:02:10 2013
@@ -50,6 +50,8 @@ 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?
+
       file(target_dir => timestamp_file)
 
       file(timestamp_file => files.flatten) do |task|