Giter VIP home page Giter VIP logo

Comments (5)

rtyler avatar rtyler commented on September 22, 2024

This looks like an issue with the $CWD from within the jar when the file is executed. I remember dealing this before but I don't remember if I actually fixed it in some other way or just decided to not use Rake as a task runner in this way.

Will have to ponder this over a beer or something

from jruby-gradle-jar-plugin.

rtyler avatar rtyler commented on September 22, 2024

This might not be solvable with how the execution environment from an executable .jar works. I might try to solve this with a jar-rake-runner gem or something that can be brought into the runtime environment and handles safely running Rake.application.run

from jruby-gradle-jar-plugin.

ysb33r avatar ysb33r commented on September 22, 2024

@blaines The intent to run rake as a JRubyExec was to work with items on local disk not in JARs. If you explain what your use-case is, then maybe we can suggest a solution or look at implementing some additional functionality

from jruby-gradle-jar-plugin.

rtyler avatar rtyler commented on September 22, 2024

@ysb33r I'm fully aware of @blaines usecase (he works on my team :)). The problem is that if you use rake as the initScript from within an executable jar it will never pick up a Rakefile located in the root of the .jar file tree.

This is much more of a bug with Rake than it is with this plugin, but I do want to find a workaround that will meet @blaines' needs

from jruby-gradle-jar-plugin.

mkristian avatar mkristian commented on September 22, 2024

rake now works with unexploded jar and an included Rakefile. rake still fails with rspec (and possible similar cases) - see: jruby/jruby#2969 and jruby/jruby#2968

otherwise it works now - closing

from jruby-gradle-jar-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.