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 2011/08/22 10:52:32 UTC

svn commit: r1160148 - in /buildr/trunk: CHANGELOG lib/buildr/ide/idea.rb

Author: donaldp
Date: Mon Aug 22 08:52:31 2011
New Revision: 1160148

URL: http://svn.apache.org/viewvc?rev=1160148&view=rev
Log:
Stop pretty printing the Intellij IDEA project files to avoid IDEA breaking in the presence of non-normalized whitespace content.

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/ide/idea.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1160148&r1=1160147&r2=1160148&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Mon Aug 22 08:52:31 2011
@@ -1,4 +1,6 @@
 1.4.7 (Pending)
+* Change: Stop pretty printing the Intellij IDEA project files to avoid IDEA breaking
+          in the presence of non-normalized whitespace content.
 * Change: Change the Intellij IDEA extension to always rebuild the project files.
 * Added:  Enhance the Intellij IDEA extension to support the addition of "artifacts"
           and "configurations" to the generated project file.

Modified: buildr/trunk/lib/buildr/ide/idea.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/ide/idea.rb?rev=1160148&r1=1160147&r2=1160148&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/ide/idea.rb (original)
+++ buildr/trunk/lib/buildr/ide/idea.rb Mon Aug 22 08:52:31 2011
@@ -50,8 +50,10 @@ module Buildr
         self.components << create_component(name, attrs, &xml)
       end
 
+      # IDEA can not handle text content with indents so need to removing indenting
+      # Can not pass true as third argument as the ruby library seems broken
       def write(f)
-        document.write(f, 2, false, true)
+        document.write(f, -1, false, true)
       end
 
       protected