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 2010/02/28 17:57:34 UTC
svn commit: r917202 - in /buildr/trunk: CHANGELOG
lib/buildr/core/application.rb
Author: boisvert
Date: Sun Feb 28 16:57:34 2010
New Revision: 917202
URL: http://svn.apache.org/viewvc?rev=917202&view=rev
Log:
BUILDR-281 Application#initialize fails if home dir isn't writable
Modified:
buildr/trunk/CHANGELOG
buildr/trunk/lib/buildr/core/application.rb
Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=917202&r1=917201&r2=917202&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Sun Feb 28 16:57:34 2010
@@ -31,6 +31,7 @@
* Fixed: BUILDR-183 Can't define root artifact namespace outside of project
(Ittay Dror)
* Fixed: BUILDR-223 Release Task: customizable commit message (Alexis Midon)
+* Fixed: BUILDR-281 Application#initialize fails if home dir isn't writable
* Fixed: BUILDR-327 Specifying :plugin eclipse nature explicitly fails
* Fixed: BUILDR-330 Install task should re-install artifact even if they
already exist (Alexis Midon)
Modified: buildr/trunk/lib/buildr/core/application.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/application.rb?rev=917202&r1=917201&r2=917202&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/application.rb (original)
+++ buildr/trunk/lib/buildr/core/application.rb Sun Feb 28 16:57:34 2010
@@ -125,7 +125,7 @@
@rakefiles = DEFAULT_BUILDFILES.dup
@top_level_tasks = []
@home_dir = File.expand_path('.buildr', ENV['HOME'])
- mkpath @home_dir unless File.exist?(@home_dir)
+ mkpath @home_dir if !File.exist?(@home_dir) && File.writable?(ENV['HOME'])
@settings = Settings.new(self)
@on_completion = []
@on_failure = []