diff --git a/bindings/java/src/jni/generate.pl b/bindings/java/src/jni/generate.pl index 37dfe2f6..c947535e 100644 --- a/bindings/java/src/jni/generate.pl +++ b/bindings/java/src/jni/generate.pl @@ -1285,7 +1285,8 @@ while (my($name, $fields) = each %classes) { "(JNIEnv *env, jobject obj, jobject sigar_obj$args_proto)"; my $jfile; - if (-e "../../src/$jsrc/$jfile") { + if (-e "../../src/$jsrc/$name.java") { + print "skipping $jfile\n"; #dont generate .java if already exists if ($has_dev_null) { $jfile = $DEVNULL;