Archived
This forum has been archived. Please start a new discussion on GitHub.
Controling Java Slice package names.
Hi,
I have the following:
Running Slice2java I get in one of my source files:
My question is how do I control the package to which the Java code belongs?
i.e if I wanted package com.observatory.dome.SuperServiceObjects
thus:
If this is a basic question forgive me. I tried putting the module in nested namespaces but the slice compiler didn't seem to like that...
Thanks,
Vince
I have the following:
#ifndef INVOKE_ICE #define INVOKE_ICE #include <Ice/Identity.ice> module SuperServiceObjects { ... };
Running Slice2java I get in one of my source files:
// Ice version 3.3.0 package SuperServiceObjects; public final class IntDictHolder { public IntDictHolder() { } public IntDictHolder(java.util.Map<java.lang.String, java.lang.Integer> value) { this.value = value; } public java.util.Map<java.lang.String, java.lang.Integer> value; }
My question is how do I control the package to which the Java code belongs?
i.e if I wanted package com.observatory.dome.SuperServiceObjects
thus:
// Ice version 3.3.0 package com.observatory.dome.SuperServiceObjects; public final class IntDictHolder { public IntDictHolder() { } public IntDictHolder(java.util.Map<java.lang.String, java.lang.Integer> value) { this.value = value; } public java.util.Map<java.lang.String, java.lang.Integer> value; }
If this is a basic question forgive me. I tried putting the module in nested namespaces but the slice compiler didn't seem to like that...
Thanks,
Vince
0
Comments
-
Take a look at http://www.zeroc.com/doc/Ice-3.3.0/manual/Java.11.15.html. That should do what you want.0
-
Thanks, Matthew. That appears to be exactly what I want.
Cheers!
Vince0