buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikos Maris <>
Subject eclipse task without m2_repo
Date Fri, 27 Aug 2010 20:56:43 GMT
How could I refactor the following code? As I don't want my classpath file
to include the M2_REPO variable, I want this variable to be unbounded after
every invocation of the eclipse task.

desc "usage: task :eclipse do noneedfor_m2eclipse _('.classpath'); end"
def noneedfor_m2eclipse(path)
if File.exists? path then
unbounded =,
repositories.local).gsub(/kind="var"/, 'kind="lib"'), "w") {|file| file.puts unbounded}

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message