From 71eb19f9087a0970d47e35654e0ad66491c1288d Mon Sep 17 00:00:00 2001 From: markheger Date: Thu, 12 Nov 2020 15:52:48 +0000 Subject: [PATCH] Makefiles and info.xml updated, #132 --- demos/HDFSBinary/Makefile | 11 ++++++++--- demos/HDFSBinary/info.xml | 6 +++--- demos/HDFSParallelFileSink/Makefile | 10 +++++++--- demos/HDFSParallelFileSink/info.xml | 4 ++-- 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/demos/HDFSBinary/Makefile b/demos/HDFSBinary/Makefile index 39fc2eb..bfb4193 100644 --- a/demos/HDFSBinary/Makefile +++ b/demos/HDFSBinary/Makefile @@ -11,9 +11,13 @@ STREAMS_HDFS_TOOLKIT ?= $(shell ([ -e "../../$(TOOLKIT_NAME)/toolkit.xml" ] && e ([ -e "../$(TOOLKIT_NAME)/toolkit.xml" ] && echo ../$(TOOLKIT_NAME)) ||\ echo $(STREAMS_INSTALL)/toolkits/$(TOOLKIT_NAME)) -SPLC_FLAGS = -a --data-directory data +ifdef STREAMS_BUILDSERVICE + STREAMS_HDFS_TOOLKIT = ../toolkits:$(STREAMS_INSTALL)/toolkits +endif -SPL_CMD_ARGS ?= -t $(STREAMS_HDFS_TOOLKIT) +SPLC_FLAGS = -a -t $(STREAMS_HDFS_TOOLKIT) --data-directory data + +SPL_CMD_ARGS ?= SPLC = $(STREAMS_INSTALL)/bin/sc SPL_COMP1NAME=HDFSBinaryRead @@ -32,6 +36,7 @@ data: clean: $(SPLC) $(SPLC_FLAGS) -C -M $(SPL_MAIN_COMPOSITE1) --output-dir ./$(BUILD_OUTPUT_DIR)/$(SPL_COMP1NAME) $(SPLC) $(SPLC_FLAGS) -C -M $(SPL_MAIN_COMPOSITE2) --output-dir ./$(BUILD_OUTPUT_DIR)/$(SPL_COMP2NAME) - -rm -rf toolkit.xml + -rm -f toolkit.xml -rm -rf data/FileContents.txt -rm -rf data/FileContentsInputPort.txt + -rm -rf output diff --git a/demos/HDFSBinary/info.xml b/demos/HDFSBinary/info.xml index 8e18d8f..4882810 100644 --- a/demos/HDFSBinary/info.xml +++ b/demos/HDFSBinary/info.xml @@ -3,13 +3,13 @@ HDFSBinary - 1.0.0 + 1.0.1 4.0.0.0 com.ibm.streamsx.hdfs - [2.0.0,4.0.0) + [2.0.0,6.0.0) - \ No newline at end of file + diff --git a/demos/HDFSParallelFileSink/Makefile b/demos/HDFSParallelFileSink/Makefile index bb604bf..6ba6a2e 100644 --- a/demos/HDFSParallelFileSink/Makefile +++ b/demos/HDFSParallelFileSink/Makefile @@ -15,9 +15,13 @@ STREAMS_HDFS_TOOLKIT ?= $(shell ([ -e "../../$(TOOLKIT_NAME)/toolkit.xml" ] && e ([ -e "../$(TOOLKIT_NAME)/toolkit.xml" ] && echo ../$(TOOLKIT_NAME)) ||\ echo $(STREAMS_INSTALL)/toolkits/$(TOOLKIT_NAME)) -SPLC_FLAGS = -a --data-directory data +ifdef STREAMS_BUILDSERVICE + STREAMS_HDFS_TOOLKIT = ../toolkits:$(STREAMS_INSTALL)/toolkits +endif -SPL_CMD_ARGS ?= -t $(STREAMS_HDFS_TOOLKIT) +SPLC_FLAGS = -a -t $(STREAMS_HDFS_TOOLKIT) --data-directory data + +SPL_CMD_ARGS ?= SPLC = $(STREAMS_INSTALL)/bin/sc SPL_MAIN_COMPOSITE = parallelwrite::Main @@ -31,4 +35,4 @@ data: mkdir data clean: $(SPLC) $(SPLC_FLAGS) -C -M $(SPL_MAIN_COMPOSITE) --output-dir ./$(BUILD_OUTPUT_DIR) - + -rm -rf output diff --git a/demos/HDFSParallelFileSink/info.xml b/demos/HDFSParallelFileSink/info.xml index c64a687..cee6fca 100644 --- a/demos/HDFSParallelFileSink/info.xml +++ b/demos/HDFSParallelFileSink/info.xml @@ -9,13 +9,13 @@ HDFSParallelSink ParallelSink example - 1.0.0 + 1.0.1 3.2.0 com.ibm.streamsx.hdfs - [2.0.0,4.0.0) + [2.0.0,6.0.0)