简体   繁体   English

Java项目的自动分发

[英]Automated distribution for Java project

I have to make a tool for automated distribution of the Java code. 我必须制作一个用于自动分发Java代码的工具。 Basically, I have a repository with compiled files, and about 50 locations to distribute the same code. 基本上,我有一个带有编译文件的存储库,大约有50个位置可以分发相同的代码。

Does anyone know some opensource tool which can help me in this process? 有谁知道一些开源工具可以在此过程中为我提供帮助?

If you are speaking about easy deployment of java applications, use JNLP. 如果您要谈论Java应用程序的轻松部署,请使用JNLP。 The only thing user has to do in this case is to surf to URL. 在这种情况下,用户唯一要做的就是浏览URL。

If you wish to do it without any user participation I believe the solution depends on target platform: 如果您希望在没有任何用户参与的情况下进行此操作,那么我认为解决方案取决于目标平台:

  • Use SSH for Unix platforms 在Unix平台上使用SSH
  • WNI or telnet for windows platforms. Windows平台的WNI或telnet。

To make the solution more portable you can run 为了使解决方案更便携,您可以运行

wget THE-JNLP-URL wget THE-JNLP-URL

on target machine using SSH for unix like platforms. 在使用Unix之类平台的平台上使用SSH的目标计算机上。

I do not know built-in command like wget for windows. 我不知道Windows的wget等内置命令。 But you can implement this in VBS or JS and then invoke the script using cscript over WMI or telnet. 但是您可以在VBS或JS中实现此功能,然后在WMI或telnet上使用cscript调用脚本。

Good luck. 祝好运。

Either you can distribute it out with rsync, or you can use Java WebStart to let the user JVM download and invoke the software as needed. 您可以使用rsync分发它,也可以使用Java WebStart让用户JVM下载并根据需要调用该软件。 For Windows based clients this is usually the easiest, especially when you want people to update to a newer version. 对于基于Windows的客户端,这通常是最简单的,尤其是当您希望人们将其更新为较新版本时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM