From 681feb05cf1cfd91c8f3ff942f2208f5362071b7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 3 Nov 2023 15:02:17 +0900 Subject: [PATCH] Generate jar to build gem --- Rakefile | 2 ++ ext/racc/com/headius/racc/Cparse.java | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index e1a0064c..63fd0be3 100644 --- a/Rakefile +++ b/Rakefile @@ -71,6 +71,8 @@ if jruby? ext.classpath = jars.map { |x| File.expand_path x }.join( ':' ) ext.name = 'cparse-jruby' end + + task :build => "#{extask.lib_dir}/#{extask.name}.jar" else # MRI require "rake/extensiontask" diff --git a/ext/racc/com/headius/racc/Cparse.java b/ext/racc/com/headius/racc/Cparse.java index 731ae2a4..aae58171 100644 --- a/ext/racc/com/headius/racc/Cparse.java +++ b/ext/racc/com/headius/racc/Cparse.java @@ -1,14 +1,14 @@ /* Cparse.java -- Racc Runtime Core for JRuby - + Copyright (c) 2016 Charles Oliver Nutter - + Ported from and distributed under the same licence as cparse.c - + cparse.c -- Racc Runtime Core - + Copyright (c) 1999-2006 Minero Aoki - + This library is free software. You can distribute/modify this program under the same terms of ruby. */