开发者

Java-implemented equivalent of rpmbuild tool?

开发者 https://www.devze.com 2023-01-14 15:51 出处:网络
Is there an implementation o开发者_如何学JAVAf the rpmbuild that is written in Java? Alas, the build server is running on Windows and yet the build process

Is there an implementation o开发者_如何学JAVAf the rpmbuild that is written in Java?

Alas, the build server is running on Windows and yet the build process for a particular Java-based application needs to generate an rpm via which to be able to install it on RedHat Linux servers.

The build server (Hudson) needs to stay on Windows OS as it also runs msbuild to build various C# .NET solution projects.


Have a look at redline-rpm, a pure Java RPM Library that provides an Ant task:

Redline is a pure Java library for manipulating RPM Package Manager packages. Currently the project supports reading and creating packages and has an included Ant task useful for integration with build systems.


How about if you make a Hudson node on linux? The Windows Hudson server will cheerfully farm out the RPM build to the Linux node (if you tag the build properly or bind it to the agent).

Or, you could do the opposite and run a Linux Hudson server and then a Windows node. One day we'll work out how to roll out Windows nodes over EC2 and then we'll be able to fire up a Windows node for the duration of the build.

0

精彩评论

暂无评论...
验证码 换一张
取 消