From a6ba235964551da2ab34f6e87cfe47853f288c15 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Fri, 22 Apr 2016 10:34:11 -0700 Subject: [PATCH] Remove ununsed dev tools files --- dev-tools/extract_party_license.rb | 54 --------------------- dev-tools/src/main/resources/pmd/custom.xml | 20 -------- 2 files changed, 74 deletions(-) delete mode 100644 dev-tools/extract_party_license.rb delete mode 100644 dev-tools/src/main/resources/pmd/custom.xml diff --git a/dev-tools/extract_party_license.rb b/dev-tools/extract_party_license.rb deleted file mode 100644 index 170006b6855..00000000000 --- a/dev-tools/extract_party_license.rb +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/env ruby -# Licensed to Elasticsearch under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on -# an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, -# either express or implied. See the License for the specific -# language governing permissions and limitations under the License -# -# The script extract license information out of logstash project -# First it will use license information out of gem object. -# If that is not available, it will try to print out the license file -# -require 'rubygems' -require 'bundler/setup' -require 'yaml' - -# get all local installed gems -def all_installed_gems - Gem::Specification.all = nil - all = Gem::Specification - Gem::Specification.reset - all -end - -all_installed_gems.select {|y| y.gem_dir.include?('vendor') }.sort {|v, u| v.name <=> u.name }.each do |x| - puts '='*80 #separator - if(x.license) #ah gem has license information - puts "%s,%s,%s,%s,%s"%[x.name, x.version, x.license, x.homepage, x.email] - else - puts "%s,%s,%s,%s"%[x.name, x.version, x.homepage, x.email] - license_file = Dir.glob(File.join(x.gem_dir,'LICENSE*')).first #see if there is a license file - if(license_file) - file = File.open(license_file, 'r') - data = file.read - file.close - puts data - else - #no license file.. try to print some gem information - puts 'No License File' - puts x.gem_dir - puts x.files.join("\n") - end - end -end - diff --git a/dev-tools/src/main/resources/pmd/custom.xml b/dev-tools/src/main/resources/pmd/custom.xml deleted file mode 100644 index 58788337ae9..00000000000 --- a/dev-tools/src/main/resources/pmd/custom.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - Default ruleset for elasticsearch server project - - - - - - - - - - - - -