commit 332fe7c0cb5144d9bf7e616d56aa3d4ddc29f3b3
parent 932be5d6e199bd8f2bd3cd7e14524a99b76f851f
Author: Tomas Hlavaty <tom@logand.com>
Date: Wed, 14 Dec 2011 03:16:48 +0100
import parent packages like in idl
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/unoidl2java.c b/unoidl2java.c
@@ -68,6 +68,9 @@ static Any last(Any x) {
static void pr_package(Any class) {
pr("///--- "); pr_module(module, "/", 0); pr(" "); pp(last(class)); pl(".java"); // TODO only toplevel
pr("package "); pr_module(module, ".", 0); pl(";");
+ for(Any x = cdr(module); !null(x); x = cdr(x)) {
+ pr("import "); pr_module(x, ".", 0); pl(".*;");
+ }
}
static void pr_enum(Any x) {