0.02
No commit activity in last 3 years
No release in over 3 years
Wrapper for executable java jar file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

Jar Wrapper - wrapper for executable java jar files

Installing Jar Wrapper

$ gem install jar_wrapper

Usage

require 'jar_wrapper'

wrapper = JarWrapper::Runner.new
wrapper.java_opts = ["-Xmx1024m", "-Xss1024k" ]

# install jar file from source URL into target file:

wrapper.install source, target

# execute jar file (java -jar jar_file.jar):

wrapper.jar_file = "jar_file.jar"
wrapper.run

# execute main class (java -cp some_class_path main_class):

wrapper.classpath = "some_class_path"
wrapper.main_class = "main_class"
wrapper.run