Is there a way to add depencies to a bean located in the /beans folder?
I’m thinking of a bean that would need some external jars.
I tried to add a jnlp file into the /beans folder like I would have for a plugin but it doesn’t seem to be used at all.
The jars specified in the jnlp is not downloaded in the client’s java cache, nor is it packed in the work/Catalina/localhost/beans cache folder although I’m pretty sure that I specified the right path for the dependencies.
Does it mean that jnlp files are ignored in the beans folder?
OK, I think I’ve just got my answer: by examining the “unsigned.jnlp” (name “LAFS_and_BEANS” which is build by Servoy and contains a ref of all the beans and lafs in the /beans and /lafs folders doesn’t contain any node, thus the client is not loading the jnlp that could be associated to a bean jar file
I was wondering how one would specify dependency by os/arch for a bean.
For example, having a different version of a jar loaded depending on the OS (win/mac/linux)?
IT2Be:
Not that I know of but in such case a jnlp in the plugins folder would do the job just fine I guess…
OK but will the jnlp be used if there is no corresponding jar in the /plugins folder?
From my experience till now, I gathered that to be used a jnlp must have the same name as a plugin.
For example:
myplugin.jar + myplugin.jar.jnlp
will work, but:
myplugin.jar + mycoolplugin.jnlp
will not.
So in my case, that would mean having a placeholder plugin in the /plugins folder just to make sure that Servoy uses the jnlp with the related name, and of course the bean in the /beans folder. That’s a lot to install, a lot to explain to the users of your bean, and not very natural IMHO.
Unless you use an installer, which is what you do with your plugins and beans, of course.
So, I would think that this simple little feature could help having a coherent installation of plugins and beans.