Skip to content

Commit 5f6f085

Browse files
Ranjan-DasguptaRanjan-Dasgupta
authored andcommitted
Doc fixes and updates for eclipse-plugin packaging
Signed-off-by: Ranjan-Dasgupta <Ranjan.Dasgupta@us.ibm.com>
1 parent c78e6a5 commit 5f6f085

16 files changed

Lines changed: 58 additions & 170 deletions

File tree

org.eclipse.paho.mqttv5.client.repository/category.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
3-
Bundle-Name: %bundle.name
3+
Bundle-Name: Paho Mqtt Client
44
Bundle-SymbolicName: org.eclipse.paho.mqttv5.client
55
Bundle-Version: 1.2.5
66
Bundle-Localization: bundle
7-
Export-Package: org.eclipse.paho.mqttv5.client;version="1.2.5",
8-
org.eclipse.paho.mqttv3.client.logging;version="1.2.5",
9-
org.eclipse.paho.mqttv3.client.persist;version="1.2.5",
10-
org.eclipse.paho.mqttv3.client.util;version="1.2.5"
11-
Bundle-Vendor: %bundle.provider
12-
Bundle-ActivationPolicy: lazy
137
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
8+
Require-Bundle: org.eclipse.paho.mqttv5.common;bundle-version="1.2.5"
9+
Export-Package: org.eclipse.paho.mqttv5.client;version="1.2.5"
10+
Bundle-Vendor: Paho
11+
Bundle-ActivationPolicy: lazy
1412
Import-Package: javax.net;resolution:=optional,
1513
javax.net.ssl;resolution:=optional

org.eclipse.paho.mqttv5.client/pom.xml

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,7 @@
1212

1313
<artifactId>org.eclipse.paho.mqttv5.client</artifactId>
1414
<name>org.eclipse.paho.mqttv5.client</name>
15-
16-
<dependencies>
17-
<dependency>
18-
<groupId>org.eclipse.paho</groupId>
19-
<artifactId>org.eclipse.paho.mqttv5.common</artifactId>
20-
<version>1.2.5</version>
21-
</dependency>
22-
<dependency>
23-
<groupId>junit</groupId>
24-
<artifactId>junit</artifactId>
25-
<version>${junit.version}</version>
26-
</dependency>
27-
</dependencies>
15+
<packaging>eclipse-plugin</packaging>
2816

2917
<build>
3018
<plugins>
@@ -67,29 +55,23 @@
6755
<artifactId>maven-compiler-plugin</artifactId>
6856
<version>3.7.0</version>
6957
<configuration>
70-
<source>1.8</source>
71-
<target>1.8</target>
58+
<source>${java.version}</source>
59+
<target>${java.version}</target>
7260
</configuration>
61+
<dependencies>
62+
<dependency>
63+
<groupId>org.eclipse.paho</groupId>
64+
<artifactId>org.eclipse.paho.mqttv5.common</artifactId>
65+
<version>1.2.5</version>
66+
</dependency>
67+
</dependencies>
7368
</plugin>
7469

7570
<plugin>
7671
<groupId>org.eclipse.tycho</groupId>
7772
<artifactId>tycho-maven-plugin</artifactId>
7873
</plugin>
7974

80-
<plugin>
81-
<groupId>org.codehaus.mojo</groupId>
82-
<artifactId>templating-maven-plugin</artifactId>
83-
<version>1.0.0</version>
84-
<executions>
85-
<execution>
86-
<id>filter-src</id>
87-
<goals>
88-
<goal>filter-sources</goal>
89-
</goals>
90-
</execution>
91-
</executions>
92-
</plugin>
9375

9476
<plugin>
9577
<groupId>org.apache.maven.plugins</groupId>
@@ -124,8 +106,8 @@
124106
<artifactId>tycho-compiler-plugin</artifactId>
125107
<version>${tycho.version}</version>
126108
<configuration>
127-
<source>1.8</source>
128-
<target>1.8</target>
109+
<source>${java.version}</source>
110+
<target>${java.version}</target>
129111
</configuration>
130112
</plugin>
131113

org.eclipse.paho.mqttv5.common.repository/category.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

org.eclipse.paho.mqttv5.common.repository/pom.xml

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
3-
Bundle-Name: %bundle.name
3+
Bundle-Name: Paho Mqtt Client
44
Bundle-SymbolicName: org.eclipse.paho.mqttv5.common
55
Bundle-Version: 1.2.5
66
Bundle-Localization: bundle
7+
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
78
Export-Package: org.eclipse.paho.mqttv5.common;version="1.2.5"
8-
Bundle-Vendor: %bundle.provider
9+
Bundle-Vendor: Paho
910
Bundle-ActivationPolicy: lazy
10-
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
1111
Import-Package: javax.net;resolution:=optional,
1212
javax.net.ssl;resolution:=optional

org.eclipse.paho.mqttv5.common/pom.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<artifactId>org.eclipse.paho.mqttv5.common</artifactId>
1414
<name>org.eclipse.paho.mqttv5.common</name>
15+
<packaging>eclipse-plugin</packaging>
1516

1617
<dependencies>
1718
<dependency>
@@ -41,8 +42,8 @@
4142
<artifactId>maven-compiler-plugin</artifactId>
4243
<version>3.7.0</version>
4344
<configuration>
44-
<source>1.8</source>
45-
<target>1.8</target>
45+
<source>${java.version}</source>
46+
<target>${java.version}</target>
4647
</configuration>
4748
</plugin>
4849

@@ -98,8 +99,8 @@
9899
<artifactId>tycho-compiler-plugin</artifactId>
99100
<version>${tycho.version}</version>
100101
<configuration>
101-
<source>1.8</source>
102-
<target>1.8</target>
102+
<source>${java.version}</source>
103+
<target>${java.version}</target>
103104
</configuration>
104105
</plugin>
105106

org.eclipse.paho.mqttv5.common/src/main/java/org/eclipse/paho/mqttv5/common/MqttException.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ public class MqttException extends Exception {
1818
// New MQTTv5 Packet Errors
1919
public static final int REASON_CODE_INVALID_IDENTIFIER = 50000; // Invalid Identifier in the IV fields
2020
public static final int REASON_CODE_INVALID_RETURN_CODE = 50001; // Invalid Return code
21-
public static final int REASON_CODE_MALFORMED_PACKET = 50002; // Packet was somehow malformed and did not comply to
22-
// the MQTTv5 specification
23-
public static final int REASON_CODE_UNSUPPORTED_PROTOCOL_VERSION = 50003; // The CONNECT packet did not contain the
24-
// correct protocol name or version
25-
21+
public static final int REASON_CODE_MALFORMED_PACKET = 50002; // Packet was somehow malformed and did not comply to the MQTTv5 specification
22+
public static final int REASON_CODE_UNSUPPORTED_PROTOCOL_VERSION = 50003; // The CONNECT packet did not contain the correct protocol name or version
2623

2724
/**
2825
* The Server sent a publish message with an invalid topic alias.
@@ -57,6 +54,11 @@ public MqttException(int reasonCode) {
5754
* meant as a hint for the developer, as the
5855
* <code>MqttCallback.disconnected</code> callback is the intended disconnect
5956
* notification mechanism.
57+
*
58+
* @param reasonCode
59+
* the reason code associated with the exception
60+
* @param disconnect
61+
* the disconnect data
6062
*/
6163
public MqttException(int reasonCode, MqttDisconnect disconnect) {
6264
super();

org.eclipse.paho.mqttv5.common/src/main/java/org/eclipse/paho/mqttv5/common/packet/MqttProperties.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,7 @@ public boolean getPayloadFormat() {
11571157
* Payload Format. See {@link MqttProperties#getPayloadFormat()}
11581158
*
11591159
* @param payloadFormat
1160+
* true if payload format is set, otherwise false
11601161
*/
11611162
public void setPayloadFormat(boolean payloadFormat) {
11621163
this.payloadFormat = payloadFormat;

org.eclipse.paho.mqttv5.common/src/main/java/org/eclipse/paho/mqttv5/common/util/MqttTopicValidator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public class MqttTopicValidator {
4646
* topic name or filter
4747
* @param wildcardAllowed
4848
* true if validate topic filter, false otherwise
49+
* @param sharedSubAllowed
50+
* true if shared subscription is allowed, false otherwise
4951
* @throws IllegalArgumentException
5052
* if the topic is invalid
5153
*/

0 commit comments

Comments
 (0)