[英]How do I check which JNLP file that has been selected to run?
I deploy an app through Java Web Start. 我通过Java Web Start部署了一个应用程序。 What I want to know is can it be possible to locate the JNLP file that the application was launched from ?
我想知道的是,可以找到启动应用程序的JNLP文件吗?
I want to try and use specific configurations for different environments, and although they may use the same application, I want to distinguish specific settings for what JNLP file has been used. 我想尝试为不同的环境使用特定的配置,尽管它们可能使用相同的应用程序,但我想区分已使用的JNLP文件的特定设置。
I've looked online for a while now with no luck, and I'm beginning to think if it is even possible. 我已经上网了一段时间,没有运气,我开始考虑是否有可能。
If anyone has had this issue or has any tutorials/similar discussions, please comment with the link. 如果有人遇到此问题或有任何教程/类似的讨论,请使用链接发表评论。
How do I check which JNLP file that has been selected to run ?
如何检查已选择要运行的JNLP文件?
Put a unique property
in the resources
section of each JNLP file. 在每个JNLP文件的
resources
部分中放置一个唯一property
。
<property name="jnlp.id" value="some-value"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.