Skip to content

Commit

Permalink
Merge pull request #133 from Alex-Cook4/master
Browse files Browse the repository at this point in the history
Update Makefiles to match other Messaging Toolkit samples.
  • Loading branch information
conglisc committed Oct 18, 2015
2 parents ef2179b + 39958e1 commit dc3c612
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 33 deletions.
24 changes: 12 additions & 12 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,16 @@
</target>

<!-- Targets to build releases -->
<target name="release" depends="clean, all, spldoc, toolkitIndexOnly">
<mkdir dir="${tmp}" />
<property name="releasefilename" value="${tmp}/streamsx.messaging.toolkits-${tkinfo.info:identity.info:version}-${DSTAMP}-${TSTAMP}.tgz" />
<tar compression="gzip" longfile="gnu"
destfile="${releasefilename}"
basedir="${basedir}"
includes="${tkinfo.info:identity.info:name}/** samples/**"
excludes="**/.gitignore **/.settings/** **/.settings **/.project **/.classpath"
/>
<checksum file="${releasefilename}" />
<checksum algorithm="sha1" file="${releasefilename}" />
</target>
<target name="release" depends="clean, all, spldoc, toolkitIndexOnly">
<mkdir dir="${tmp}" />
<property name="releasefilename" value="${tmp}/streamsx.messaging.toolkits-${tkinfo.info:identity.info:version}-${DSTAMP}-${TSTAMP}.tgz" />
<tar compression="gzip" longfile="gnu"
destfile="${releasefilename}"
basedir="${basedir}"
includes="${tkinfo.info:identity.info:name}/** samples/** samples/**/.settings/**"
excludes="**/.gitignore **/.project **/.classpath ${tkinfo.info:identity.info:name}/.settings/**"
/>
<checksum file="${releasefilename}" />
<checksum algorithm="sha1" file="${releasefilename}" />
</target>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public String getPropertiesFile() {
return propertiesFile;
}

@Parameter(optional = true, description = "Name of the attribute for the message. This attribute is required. Default is \\\"message\\\".")
@Parameter(optional = true, description = "Name of the attribute for the message. If this parameter is not specified, then by default the operator will look for an attribute named \\\"message\\\". If the \\\"message\\\" attribute is not found, messages will not be sent. Default is \\\"message\\\".")
public void setMessageAttribute(String value) {
messageAH.setName(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public class SimpleConsumerClient implements StateHandler {
private int fetchSize;
private String clientName;
protected Properties finalProperties = new Properties();
private String charSet = "UTF-8";
private AttributeHelper topicAH = null, keyAH = null, messageAH = null;
private int leaderConnectionRetries = 3;
private int connectionRetryInterval = 1000;
Expand Down
2 changes: 1 addition & 1 deletion samples/JMSSample/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ others. All Rights Reserved.
<info:dependencies>
<info:toolkit>
<common:name>com.ibm.streamsx.messaging</common:name>
<common:version>[2.0.0,3.0.0)</common:version>
<common:version>[2.0.0,4.0.0)</common:version>
</info:toolkit>
</info:dependencies>
</info:toolkitInfoModel>
2 changes: 1 addition & 1 deletion samples/JmsWithXmlParse/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<info:dependencies>
<info:toolkit>
<common:name>com.ibm.streamsx.messaging</common:name>
<common:version>[2.0.0,3.0.0)</common:version>
<common:version>[2.0.0,4.0.0)</common:version>
</info:toolkit>
</info:dependencies>
</info:toolkitInfoModel>
2 changes: 1 addition & 1 deletion samples/JmsWithXmlParseBytes/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<info:dependencies>
<info:toolkit>
<common:name>com.ibm.streamsx.messaging</common:name>
<common:version>[2.0.0,3.0.0)</common:version>
<common:version>[2.0.0,4.0.0)</common:version>
</info:toolkit>
</info:dependencies>
</info:toolkitInfoModel>
6 changes: 1 addition & 5 deletions samples/KafkaConsistentRegionConsumerParallel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@

.PHONY: all clean

TOOLKIT_NAME=com.ibm.streamsx.messaging
STREAMS_MESSAGING_TOOLKIT ?= $(shell ([ -e ../../$(TOOLKIT_NAME)/toolkit.xml ] && echo ../../$(TOOLKIT_NAME)) ||\
echo $(STREAMS_STUDIO_SPL_PATH) ||\
([ -e "../$(TOOLKIT_NAME)" ] && echo ../$(TOOLKIT_NAME)) ||\
echo $(STREAMS_INSTALL)/toolkits/$(TOOLKIT_NAME))
STREAMS_MESSAGING_TOOLKIT ?= ../../com.ibm.streamsx.messaging:${STREAMS_INSTALL}/toolkits/com.ibm.streamsx.messaging


SPLC_FLAGS ?= -a --data-directory data
Expand Down
6 changes: 1 addition & 5 deletions samples/KafkaConsistentRegionConsumerSimple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@

.PHONY: all clean

TOOLKIT_NAME=com.ibm.streamsx.messaging
STREAMS_MESSAGING_TOOLKIT ?= $(shell ([ -e ../../$(TOOLKIT_NAME)/toolkit.xml ] && echo ../../$(TOOLKIT_NAME)) ||\
echo $(STREAMS_STUDIO_SPL_PATH) ||\
([ -e "../$(TOOLKIT_NAME)" ] && echo ../$(TOOLKIT_NAME)) ||\
echo $(STREAMS_INSTALL)/toolkits/$(TOOLKIT_NAME))
STREAMS_MESSAGING_TOOLKIT ?= ../../com.ibm.streamsx.messaging:${STREAMS_INSTALL}/toolkits/com.ibm.streamsx.messaging


SPLC_FLAGS ?= -a --data-directory data
Expand Down
6 changes: 1 addition & 5 deletions samples/KafkaParallelConsumers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@

.PHONY: all clean

TOOLKIT_NAME=com.ibm.streamsx.messaging
STREAMS_MESSAGING_TOOLKIT ?= $(shell ([ -e ../../$(TOOLKIT_NAME)/toolkit.xml ] && echo ../../$(TOOLKIT_NAME)) ||\
echo $(STREAMS_STUDIO_SPL_PATH) ||\
([ -e "../$(TOOLKIT_NAME)" ] && echo ../$(TOOLKIT_NAME)) ||\
echo $(STREAMS_INSTALL)/toolkits/$(TOOLKIT_NAME))
STREAMS_MESSAGING_TOOLKIT ?= ../../com.ibm.streamsx.messaging:${STREAMS_INSTALL}/toolkits/com.ibm.streamsx.messaging


SPLC_FLAGS ?= -a --data-directory data
Expand Down
2 changes: 1 addition & 1 deletion samples/MqttSample/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<info:dependencies>
<info:toolkit>
<common:name>com.ibm.streamsx.messaging</common:name>
<common:version>[2.0.0,3.0.0)</common:version>
<common:version>[2.0.0,4.0.0)</common:version>
</info:toolkit>
</info:dependencies>
</info:toolkitInfoModel>

0 comments on commit dc3c612

Please sign in to comment.