From 693e37dd2558b12374ae22b47d0fd0086f25822e Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 22 Jun 2006 17:04:48 +0000 Subject: [PATCH] use package variable --- bindings/java/src/jni/generate.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bindings/java/src/jni/generate.pl b/bindings/java/src/jni/generate.pl index 67678d1e..9d65e0a9 100644 --- a/bindings/java/src/jni/generate.pl +++ b/bindings/java/src/jni/generate.pl @@ -1,6 +1,8 @@ use strict; use File::Path; +my $package = 'net.hyperic.sigar'; + my %platforms = ( A => "AIX", D => "Darwin", @@ -1235,7 +1237,7 @@ while (my($class, $fields) = each %classes) { print HFH "#define JSIGAR_FIELDS_MAX $i\n"; while (my($name, $fields) = each %classes) { - my $java_class = "net.hyperic.sigar.$name"; + my $java_class = "$package.$name"; (my $jni_prefix = "Java.$java_class") =~ s/\./_/g; my $class = $name; my $cname; @@ -1332,7 +1334,7 @@ EOF my $cache_field_ids = 1; print JFH <