diff options
author | Mark Spruiell <mes@zeroc.com> | 2015-11-06 11:24:22 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2015-11-06 11:24:22 -0800 |
commit | 61f9f44b8eda9c9cdb9139436d4ad87e6e7d5839 (patch) | |
tree | 286025a254ce57d02068551f11cf69b89fa66a72 /java/src | |
parent | A few changes to support move of Freeze (diff) | |
download | ice-61f9f44b8eda9c9cdb9139436d4ad87e6e7d5839.tar.bz2 ice-61f9f44b8eda9c9cdb9139436d4ad87e6e7d5839.tar.xz ice-61f9f44b8eda9c9cdb9139436d4ad87e6e7d5839.zip |
initial commit of C++ Bluetooth transport
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/Ice/src/main/java/IceInternal/PropertyNames.java | 12 | ||||
-rw-r--r-- | java/src/IceBT/src/main/java/IceBT/EndpointI.java | 16 |
2 files changed, 22 insertions, 6 deletions
diff --git a/java/src/Ice/src/main/java/IceInternal/PropertyNames.java b/java/src/Ice/src/main/java/IceInternal/PropertyNames.java index 401fc14ae66..929bb424f48 100644 --- a/java/src/Ice/src/main/java/IceInternal/PropertyNames.java +++ b/java/src/Ice/src/main/java/IceInternal/PropertyNames.java @@ -6,7 +6,7 @@ // ICE_LICENSE file included in this distribution. // // ********************************************************************** -// Generated by makeprops.py from file ../config/PropertyNames.xml, Thu Nov 5 12:25:50 2015 +// Generated by makeprops.py from file ../config/PropertyNames.xml, Fri Nov 6 09:55:41 2015 // IMPORTANT: Do not edit this file -- any edits made here will be lost! @@ -1019,6 +1019,14 @@ public final class PropertyNames null }; + public static final Property IceBTProps[] = + { + new Property("IceBT\\.DefaultAddress", false, null), + new Property("IceBT\\.RcvSize", false, null), + new Property("IceBT\\.SndSize", false, null), + null + }; + public static final Property Glacier2Props[] = { new Property("Glacier2\\.AddConnectionContext", false, null), @@ -1219,6 +1227,7 @@ public final class PropertyNames IcePatch2ClientProps, IceSSLProps, IceStormAdminProps, + IceBTProps, Glacier2Props, Glacier2CryptPermissionsVerifierProps, FreezeProps, @@ -1239,6 +1248,7 @@ public final class PropertyNames "IcePatch2Client", "IceSSL", "IceStormAdmin", + "IceBT", "Glacier2", "Glacier2CryptPermissionsVerifier", "Freeze", diff --git a/java/src/IceBT/src/main/java/IceBT/EndpointI.java b/java/src/IceBT/src/main/java/IceBT/EndpointI.java index 0830e757a0d..4c18fbdb687 100644 --- a/java/src/IceBT/src/main/java/IceBT/EndpointI.java +++ b/java/src/IceBT/src/main/java/IceBT/EndpointI.java @@ -274,6 +274,17 @@ final class EndpointI extends IceInternal.EndpointI { super.initWithOptions(args); + if(_addr.length() == 0) + { + _addr = _instance.properties().getProperty("IceBT.DefaultAddress"); + } + + if(!oaEndpoint && _addr.length() == 0) + { + throw new Ice.EndpointParseException( + "a device address must be specified using the -a option or IceBT.DefaultAddress"); + } + if(_name.length() == 0) { _name = "Ice Service"; @@ -284,11 +295,6 @@ final class EndpointI extends IceInternal.EndpointI throw new Ice.EndpointParseException("a UUID must be specified using the -u option"); } - if(!oaEndpoint && _addr.length() == 0) - { - throw new Ice.EndpointParseException("a device address must be specified using the -a option"); - } - hashInit(); } |