Author: lacton
Date: Sun Oct 26 15:16:23 2008
New Revision: 708052

URL: http://svn.apache.org/viewvc?rev=708052&view=rev
Log:
BUILDR-188 Source code attachment for IDEA .iml file. From BUILDR-156 patch 
provided by Marko Sibakov.

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

Modified: incubator/buildr/trunk/CHANGELOG
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/CHANGELOG?rev=708052&r1=708051&r2=708052&view=diff
==============================================================================
--- incubator/buildr/trunk/CHANGELOG (original)
+++ incubator/buildr/trunk/CHANGELOG Sun Oct 26 15:16:23 2008
@@ -11,6 +11,7 @@
           test source code but no main source code. 
 * Change: BUILDR-177 Moved cobertura and emma extensions to lib directory.
 * Change: BUILDR-187 Source code attachment for Eclipse .classpath.
+* Change: BUILDR-188 Source code attachment for IDEA .iml file (Marko Sibakov).
 * Fixed:  Removed double complete/fail messages showing up on console.
 * Fixed:  BUILDR-158 Nailgun is now a delegate for buildr/drb (a pure-ruby 
dRuby server)
 * Fixed:  BUILDR-172 Scala compiler not loaded by default.

Modified: incubator/buildr/trunk/lib/buildr/ide/idea.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/ide/idea.rb?rev=708052&r1=708051&r2=708052&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/ide/idea.rb (original)
+++ incubator/buildr/trunk/lib/buildr/ide/idea.rb Sun Oct 26 15:16:23 2008
@@ -129,7 +129,9 @@
                         xml.root :url=>"jar://#{path}!/"
                       end
                       xml.JAVADOC
-                      xml.SOURCES
+                      xml.SOURCES do
+                        xml.root :url=>"jar://#{path.sub(/\.jar$/, 
"-sources.jar")}!/"
+                      end
                     end
                   end
                 end

Modified: incubator/buildr/trunk/lib/buildr/ide/idea7x.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/ide/idea7x.rb?rev=708052&r1=708051&r2=708052&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/ide/idea7x.rb (original)
+++ incubator/buildr/trunk/lib/buildr/ide/idea7x.rb Sun Oct 26 15:16:23 2008
@@ -160,7 +160,9 @@
                 xml.root :url=> path
               end
               xml.JAVADOC
-              xml.SOURCES
+              xml.SOURCES do
+                xml.root :url=>"jar://#{path.sub(/\.jar$/, "-sources.jar")}!/"
+              end
             end
           end
         end


Reply via email to