Coder Social home page Coder Social logo

Comments (4)

sbrossie avatar sbrossie commented on June 8, 2024 1

@wwjbatista Re-opening the task. I think you fix 'almost' works, but not for all cases:

> file_path="/Somewhere/xxx-foo/target/xxx-foo-1.0.0.jar"
"xxx-foo"  => GOOD

> file_path="/Somewhere/xxx-foo/target/xxx-foo-1.0.0-SNAPSHOT.jar" 
"xxx-foo--SNAPSHOT"   => NO

The generic issue is that we could have random artifact name such as xxx-foo-1.2.3.263541263412.jar or whatever else.

  1. I think we should at support the default SNAPSHOT (very standard)
  2. As a default, if name does not math regex, have a sane default. Maybe stop at the last - ?

@pierre Any thoughts?

from killbill-cloud.

sbrossie avatar sbrossie commented on June 8, 2024

This is really annoying and should be fixed: Example:

kpm install_java_plugin 'dev:xxx-foo' --from-source-file="/Somewhere/xxx-foo/target/xxx-foo-1.0.0.jar" --version="1.0.0" --destination=/var/tmp/mybundles

As a result the entry /var/tmp/mybundles/plugins/java/xxx will be created (and if multiple plugins starts with xxx, then each install overrides previous one). We would want /var/tmp/mybundles/plugins/java/xxx-foo instead.

from killbill-cloud.

pierre avatar pierre commented on June 8, 2024

Interesting that the SNAPSHOT one doesn't work, we have a test specifically for this: 576e3ff#diff-def9654044137b79bf1d315ac4671d1bR62.

from killbill-cloud.

sbrossie avatar sbrossie commented on June 8, 2024

Also, something that i noticed is that we need to specify the version (but we should not have to, as it can be extracted):

kpm install_java_plugin analytics --from-source-file=/SOMETHING/killbill/killbill-analytics-plugin/target/analytics-plugin-4.2.4-SNAPSHOT.jar 
no implicit conversion of nil into String
/Users/sbrossier/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/pathname.rb:389:in `initialize'
/Users/sbrossier/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/pathname.rb:389:in `new'
/Users/sbrossier/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/pathname.rb:389:in `join'

However, following works:

kpm install_java_plugin analytics --from-source-file=/Users/sbrossier/Src/killbill/killbill-analytics-plugin/target/analytics-plugin-4.2.4-SNAPSHOT.jar --version=4.2.4-SNAPSHOT
I, [2017-08-07T14:33:14.130954 #3374]  INFO -- : Successful installation of ...

from killbill-cloud.

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.