{"id":16348006,"url":"https://github.com/ai/ruby2jar","last_synced_at":"2025-11-10T01:30:17.128Z","repository":{"id":65988464,"uuid":"252595","full_name":"ai/ruby2jar","owner":"ai","description":"Ruby2Jar builds JAR from a Ruby script","archived":false,"fork":false,"pushed_at":"2009-07-16T10:54:16.000Z","size":109,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-19T00:02:36.918Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ruby2jar.rubyforge.org/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ai.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-07-16T10:53:37.000Z","updated_at":"2020-09-27T20:10:15.000Z","dependencies_parsed_at":"2023-02-19T20:40:14.745Z","dependency_job_id":null,"html_url":"https://github.com/ai/ruby2jar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai%2Fruby2jar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai%2Fruby2jar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai%2Fruby2jar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai%2Fruby2jar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ai","download_url":"https://codeload.github.com/ai/ruby2jar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576790,"owners_count":19662114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T00:48:04.741Z","updated_at":"2025-11-10T01:30:17.088Z","avatar_url":"https://github.com/ai.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Ruby2Jar - build JAR from Ruby script\n\nRuby2Jar builds JAR from a Ruby script. It copies gems, compiles sources\nand packages JAR. It is an easy way to distribute your JRuby application or \ncreate Applet or Java Web Start.\n\n== Installation\nUse Gem to download and install Ruby2Jar.\n\n   gem install ruby2jar\n\nYou must have Java Development Kit to use JAR builder. Also you should run it \nfrom JRuby for correct platform in gems.\n\n== Usage\nAdd task to build JAR in Rakefile:\n\n  require \"rubygems\"\n  require \"ruby2jar\"\n  \n  PKG_NAME = \"program\"\n  PKG_VERSION = \"0.1\"\n  \n  Ruby2Jar::Rake::JarTask.new do |jar|\n    jar.files = FileList[\"lib/**/*\", \"bin/*\"]\n    jar.main = \"bin/program\"\n    jar.name = PKG_NAME\n    jar.version = PKG_VERSION\n    jar.add_dependency \"rspec\"\n  end\n\n== Limitation\nIn current JRuby version (1.1.2) you can't use Ruby file system functions \nand +__FILE__+ constant in JAR. So didn't use \u003ctt\u003eDir.glob\u003c/tt\u003e to require \nall files in dir or somethink like this.\n\nIf program containt Java files it must be in ext/ dir. Source Java files \nwithout class files will be compiled.\n\n== Gem config\nGem can contain building config \u003ctt\u003ejava.yaml\u003c/tt\u003e in gem root. Builder will \nfind list of exclude file patterns in \u003ctt\u003ejar.exclude\u003c/tt\u003e config node.\n\n== License\nRuby2Jar is licensed under the GNU General Public License version 3.\nYou can read it in LICENSE file or in http://www.gnu.org/licenses/gpl.html .\n\n== Author\nAndrey \"A.I.\" Sitnik \u003candrey@sitnik.ru\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai%2Fruby2jar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fai%2Fruby2jar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai%2Fruby2jar/lists"}