I understand that the long term plan with Fedora is to expose all system configuration information via DBus. Are there any Java bindings for this yet?
Part of the reason I ask is I'm wondering what is (or will be) the correct way to query locally installed RPMs.
Thanks, Joe.
On Sun, 27 Mar 2005, Joe Desbonnet wrote:
I understand that the long term plan with Fedora is to expose all system configuration information via DBus. Are there any Java bindings for this yet?
Part of the reason I ask is I'm wondering what is (or will be) the correct way to query locally installed RPMs.
Can't you just use
Process p = Runtime.exec ("rpm -q " + packageName) InputStream in = p.getInputStream (); // Read query results from in
?
On Sun, 2005-03-27 at 13:45 +0100, Joe Desbonnet wrote:
I understand that the long term plan with Fedora is to expose all system configuration information via DBus.
I wouldn't say that, really. I don't think anyone is going to make a D-BUS service for exposing Apache configuration, for example. That's not to say it wouldn't be neat if it just happened, but I think it would be of less value than some other things we could be spending time on.
Are there any Java bindings for this yet?
Not yet, no. The Java-GNOME people are working on it though: http://lists.freedesktop.org/archives/dbus/2005-February/002180.html
Part of the reason I ask is I'm wondering what is (or will be) the correct way to query locally installed RPMs.
I think Robin's correct; your best bet now is just to invoke rpm. Alternatively there might be Java bindings to the librpm.
On 27 Mar 2005, at 8:03, Colin Walters wrote:
Part of the reason I ask is I'm wondering what is (or will be) the correct way to query locally installed RPMs.
I think Robin's correct; your best bet now is just to invoke rpm. Alternatively there might be Java bindings to the librpm.
I haven't used this, but found it by accident some time ago and bookmarked it. It might give the start you're after.
On Sun, 27 Mar 2005, Phil Shaw wrote:
I haven't used this, but found it by accident some time ago and bookmarked it. It might give the start you're after.
Also, I have hacked jrpm to support the rpm headers that older versions of yum use (newer versions use XML). Email me if you want that code.
java-devel@lists.fedoraproject.org