[collectd] java plugin class files

Sebastian Harl sh at tokkee.org
Mon Sep 14 15:49:55 CEST 2009


Hi Amit,

On Mon, Sep 14, 2009 at 07:02:20PM +0530, Amit Gupta wrote:
> Do find the patch attached. I have also got the jmx java classes to be
> compiled (as a part of build process) in this patch. Let me know if the
> patch looks okay.

The patch looks mostly fine to me. See two small comments / nitpicks
below.

> diff --git a/bindings/java/Makefile.am b/bindings/java/Makefile.am
> index af5e480..0d9ee74 100644
> --- a/bindings/java/Makefile.am
> +++ b/bindings/java/Makefile.am
[…]
> +install-exec-local: java-build-stamp jmx-build-stamp
> +       mkdir -p "$(DESTDIR)$(pkgdatadir)/java"
> +       $(JAR) cf java-plugin.jar "org/collectd/api"/*.class
> +       $(JAR) cf jmx.jar "org/collectd/java"/*.class
> +       $(INSTALL) -m 644 java-plugin.jar \
> +               "$(DESTDIR)$(pkgdatadir)/java"
> +       $(INSTALL) -m 644 jmx.jar \
> +               "$(DESTDIR)$(pkgdatadir)/java"

What do you think about creating the jar files in .libs/ or something?
That would avoid problems with locally modified versions …

>  clean-local:
[…]
> +       rm -f *.jar

Removing all jar files in the top level java directory does not sound
like a good idea to me. Developers might have other jar files around for
testing purposes or whatever. Unconditionally removing some directory
.libs/ would be fine for me though.

Hope you'll forgive my nitpickyness ;-)

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090914/7b6ea0be/attachment.pgp 


More information about the collectd mailing list