buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1431880 - /buildr/trunk/lib/buildr/ide/idea.rb
Date Fri, 11 Jan 2013 04:49:54 GMT
Author: donaldp
Date: Fri Jan 11 04:49:54 2013
New Revision: 1431880

URL: http://svn.apache.org/viewvc?rev=1431880&view=rev
Log:
Ensure that the order of the attributes in the underlying serialized xml matches those generated
by IDEA if running under ruby 1.9+ by explicitly ordering inserts into hash

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

Modified: buildr/trunk/lib/buildr/ide/idea.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/ide/idea.rb?rev=1431880&r1=1431879&r2=1431880&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/ide/idea.rb (original)
+++ buildr/trunk/lib/buildr/ide/idea.rb Fri Jan 11 04:49:54 2013
@@ -757,12 +757,13 @@ module Buildr
       end
 
       def project_root_manager_component
-        attribs = {"version" => "2",
-                   "assert-keyword" => "true",
-                   "jdk-15" => "true",
-                   "project-jdk-name" => self.jdk_version,
-                   "project-jdk-type" => "JavaSDK",
-                   "languageLevel" => "JDK_#{self.jdk_version.gsub('.', '_')}"}
+        attribs = {}
+        attribs["version"] = "2"
+        attribs["languageLevel"] = "JDK_#{self.jdk_version.gsub('.', '_')}"
+        attribs["assert-keyword"] = "true"
+        attribs["jdk-15"] = "true"
+        attribs["project-jdk-name"] = self.jdk_version
+        attribs["project-jdk-type"] = "JavaSDK"
         create_component("ProjectRootManager", attribs) do |xml|
           xml.output("url" => "file://$PROJECT_DIR$/out")
         end



Mime
View raw message