install-eclipse.rb
def filter_installed_plugins(plugins)
   out = run_and_check_err("#{ECLIPSE_BIN_PATH} -nosplash -application org.eclipse.equinox.p2.director -listInstalledRoots")
  # There are two types of plugins listed, just names, or names with versions
  missing = plugins.clone
  out.lines.each do |line|
    next if line.start_with? "Operation completed"
    plugins.each do |package|
      pkg = package[:pkg]
      missing.delete(package) if line.start_with? pkg
    end
  end

  return missing
end
# Given a list of plugins, return a list of plugins which
# are already installed in eclipse/eclipse.
Given a list of plugins, return a list of plugins which
are already installed in eclipse/eclipse.
Given a list of plugins return a list of plugins which are already installed in eclipse / eclipse .
def filter_installed_plugins(plugins)
   out = run_and_check_err("#{ECLIPSE_BIN_PATH} -nosplash -application org.eclipse.equinox.p2.director -listInstalledRoots")
  missing = plugins.clone
  out.lines.each do |line|
    next if line.start_with? "Operation completed"
    plugins.each do |package|
      pkg = package[:pkg]
      missing.delete(package) if line.start_with? pkg
    end
  end
  return missing
end
def filter_installed_plugins ( plugins ) out = run_and_check_err ( "#{ECLIPSE_BIN_PATH} -nosplash -application org.eclipse.equinox.p2.director -listInstalledRoots" ) missing = plugins . clone out . lines . each do | line | next if line . start_with? "Operation completed" plugins . each do | package | pkg = package [ :pkg ] missing . delete ( package ) if line . start_with? pkg end end return missing end
Given a list of plugins, return a list of plugins which
are already installed in eclipse/eclipse.
Given a list of plugins return a list of plugins which are already installed in eclipse / eclipse .
# There are two types of plugins listed, just names, or names with versions
plugins