You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2009/10/29 14:07:42 UTC

svn commit: r830922 - in /buildr/trunk: CHANGELOG lib/buildr/ide/eclipse.rb spec/ide/eclipse_spec.rb

Author: boisvert
Date: Thu Oct 29 13:07:42 2009
New Revision: 830922

URL: http://svn.apache.org/viewvc?rev=830922&view=rev
Log:
BUILDR-334 Eclipse .classpath files use absolute paths for library entries (Stefan Wasilewski)

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/ide/eclipse.rb
    buildr/trunk/spec/ide/eclipse_spec.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=830922&r1=830921&r2=830922&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Thu Oct 29 13:07:42 2009
@@ -1,6 +1,8 @@
 1.4.0 (Pending)
-* Added:  BUILDR-328 Detect Eclipse plugin project with META-INF/MANIFEST.MF and Bundle-SymbolicName:
-          entry
+* Added:  BUILDR-328 Detect Eclipse plugin project with META-INF/MANIFEST.MF 
+          and Bundle-SymbolicName: entry
+* Fixed:  BUILDR-334 Eclipse .classpath files use absolute paths for library 
+          entries (Stefan Wasilewski)
 * Fixed:  BUILDR-327 Specifying :plugin eclipse nature explicitly fails
 
 1.3.5 (2009-10-05)

Modified: buildr/trunk/lib/buildr/ide/eclipse.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/ide/eclipse.rb?rev=830922&r1=830921&r2=830922&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/ide/eclipse.rb (original)
+++ buildr/trunk/lib/buildr/ide/eclipse.rb Thu Oct 29 13:07:42 2009
@@ -251,7 +251,7 @@
 
       def lib libs
         libs.map(&:to_s).sort.uniq.each do |path|
-          @xml.classpathentry :kind=>'lib', :path=>path
+          @xml.classpathentry :kind=>'lib', :path=>relative(path)
         end
       end
 

Modified: buildr/trunk/spec/ide/eclipse_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/ide/eclipse_spec.rb?rev=830922&r1=830921&r2=830922&view=diff
==============================================================================
--- buildr/trunk/spec/ide/eclipse_spec.rb (original)
+++ buildr/trunk/spec/ide/eclipse_spec.rb Thu Oct 29 13:07:42 2009
@@ -424,7 +424,7 @@
     
     it 'should have a lib artifact reference in the .classpath file' do
       classpath_xml_elements.collect("classpathentry[@kind='lib']") { |n| n.attributes['path'] }.
-        should include(File.expand_path 'lib/some-local.jar')
+        should include('lib/some-local.jar')
     end
   end