Closed psiroky closed 10 years ago
Thanks for the pull request. I don't think the Cargo library exposes a list of supported containers through its API. That would make sense though. Would you be interested in looking into this?
Yes, I will look into it once I have few minutes.
@psiroky That would be great!
Hi Benjamin, What version will this be in? I'd like to take advantage of EAP 6.3 as well. Can you push new version to jcenter() or let me know if it's possible for me to grab now somehow? Appreciate all your hard work on this plugin!! Thanks
@psiroky @twferrell Released with version 1.5.2.
@psiroky Did you have a chance to look into the API support?
@bmuschko thanks for the remainder, I complete forgot about this :) I could not find an easy way to get the list of supported containers. I asked on Cargo's dev-list (just now) to see if I missed something or there indeed is not a programmatic way to get the list (at least in current version).
http://cargo.996258.n3.nabble.com/Getting-list-of-supported-containers-programatically-td19389.html
The following code should retrieve the supported containers (they need to be on CP):
ContainerFactory containerFactory = new DefaultContainerFactory(); containerFactory.getContainerIds();
I am not sure though if that could be drop-in replacement for Container enum
. @bmuschko what do you think?
Yeah, that should work. The only thing the method does not provide is a descriptive name of the container but that's OK. Would you be interested in working on a pull request for this?
I am not sure if the change in this single file is enough or not. Please let me know if there are some additional changes needed.
I am wondering, shouldn't the list of supported containers come directly from the particular cargo version? I have no idea if that is technically possible, but it would seem logical to let the underlying cargo version decide what containers it supports.