From 6c49bc7db014cdbfbd5ce7426d3dcee9012ee8a5 Mon Sep 17 00:00:00 2001 From: John Woods Date: Thu, 14 Dec 2017 13:38:02 -0600 Subject: [PATCH] Removed some unneeded files as discussed in #601. --- ext/nmatrix_java/Rakefile | 68 ---------------------- ext/nmatrix_java/nmatrix/data/Complex.java | 0 2 files changed, 68 deletions(-) delete mode 100644 ext/nmatrix_java/Rakefile delete mode 100644 ext/nmatrix_java/nmatrix/data/Complex.java diff --git a/ext/nmatrix_java/Rakefile b/ext/nmatrix_java/Rakefile deleted file mode 100644 index 749578eb..00000000 --- a/ext/nmatrix_java/Rakefile +++ /dev/null @@ -1,68 +0,0 @@ -PROJECT_DIR = File.expand_path(".",Dir.pwd) -# puts PROJECT_DIR - -BUILD_DIR = "build" -CLASSES_DIR = "../build/classes" -TEST_CLASSES_DIR = "build/testClasses" - -VENDOR_DIR = "#{PROJECT_DIR}/vendor" -TARGET_DIR = "#{PROJECT_DIR}/target" -# puts VENDOR_DIR - -jars = Dir["#{VENDOR_DIR}/*.jar"] -# puts jars - -unless RUBY_PLATFORM == 'java' - abort 'Please run with JRuby' -end - -#----------------------------------------------------------------------------------------- - -desc 'Compile java classes' -task :javac do - - Dir.chdir("nmatrix") - classes = Dir['**/*.java'] - sh "javac -classpath #{jars.join(':')} -d #{CLASSES_DIR} #{classes.join(' ')}" - # sh "javac -d #{CLASSES_DIR} #{classes.join(' ')}" - -end - -#----------------------------------------------------------------------------------------- -desc 'Make jar file' -task :jar do - - Dir.chdir("build/classes") - classes = Dir['**/*.class'] - # p classes - sh "jar -cf #{TARGET_DIR}/nmatrix.jar #{classes.join(' ')}" - -end - -#----------------------------------------------------------------------------------------- - - -desc 'Compile test classes' -task :compileTest do - - classes = Dir['**/*.java'] - sh "javac -classpath #{jars.join(':')} -d #{TEST_CLASSES_DIR} #{classes.join(' ')}" - # sh "javac -d #{CLASSES_DIR} #{classes.join(' ')}" - -end - -#----------------------------------------------------------------------------------------- - -desc 'Run junit tests' -task :test do - - Dir.chdir("build/classes") - classes = Dir['**/*.class'] - # p classes - sh "javac -classpath #{TARGET_DIR}/nmatrix.jar -d #{classes.join(' ')}" - -end - -#----------------------------------------------------------------------------------------- - -task :default => :javac diff --git a/ext/nmatrix_java/nmatrix/data/Complex.java b/ext/nmatrix_java/nmatrix/data/Complex.java deleted file mode 100644 index e69de29b..00000000