java - Execute Ruby Gem from Ruby Script -
i have installed gem rvpacker gem. command runs fine want set options. have method now
def runpacker(dir, type) puts dir puts type begin rvpacker -v -f -d #{dir} -t ace -a #{type} rescue exception =>e puts "error!" puts e.message puts e.backtrace.inspect return 1 end return 0 end
how write rvpacker line using parameters?
it's script run java app using jruby. when call command jruby directly got
org.jruby.embed.parsefailedexception: (syntaxerror) <script>:1: syntax error, unexpected tuminus rvpacker -v -f -d p:\temp-workspace\rpgtestproject1 -t ace -a unpack
but when write in console directly it's fine.
rvpacker -v -f -d #{dir} -t ace -a #{type}
not ruby code , wanted execute ruby interpreter ;) ave me!
Comments
Post a Comment