These are chat archives for jruby-gradle/jruby-gradle-plugin

18th
Oct 2014
R. Tyler Croy
@rtyler
Oct 18 2014 20:04
@ysb33r how long you in the US for?
Schalk W. Cronjé
@ysb33r
Oct 18 2014 21:05
flying out coming friday
R. Tyler Croy
@rtyler
Oct 18 2014 21:26
ah cool
I wish I were somehow able to get to denver :P
man, I swear bundler is like a cancel
somehow I cannot load Rake from an executable fat jar because of some bundler madness
Schalk W. Cronjé
@ysb33r
Oct 18 2014 21:37
Why do want to add rake ro another fat jar?
R. Tyler Croy
@rtyler
Oct 18 2014 21:37
what do you mean?
Schalk W. Cronjé
@ysb33r
Oct 18 2014 21:37
“cause I can get it to run from jrubyexec?
R. Tyler Croy
@rtyler
Oct 18 2014 21:38
they're two different things
running rake from jrubyexec is useful for a dev toolchain
running rake from inside the .jar itself is useful to re-use rake as a task runner for an executable jar
Schalk W. Cronjé
@ysb33r
Oct 18 2014 21:39
what is teh use case for that?
R. Tyler Croy
@rtyler
Oct 18 2014 21:40
it's a really easy way to make a jar do multiple things
i.e. java -jar fat.jar db:migrate and java -jar fat.jar console
that way you can use the same tasks defined in your development environment (locally running rake) versus a deployment environment (packaged jar)
hrm, I think the problem might be that the load path in the bootstrap script doesn't include enough
yeap, $LOAD_PATH in the script is wrong
er, well, not complete enough to load gems
Schalk W. Cronjé
@ysb33r
Oct 18 2014 21:42
I see - you want to use rake as an enabler to perform certain tasks, because it is easier
R. Tyler Croy
@rtyler
Oct 18 2014 21:42
yeah
Schalk W. Cronjé
@ysb33r
Oct 18 2014 21:43
not really about running rake directly, but rather behind the scenes
R. Tyler Croy
@rtyler
Oct 18 2014 21:43
I wrote about this a while ago on our company hacker blog
fwiw
I'm running low on battery, I'll file the issue for now and fix it when I get home in an hour or two
alright, bbiab