Skip to content

Commit

Permalink
Makefiles and info.xml updated, #132
Browse files Browse the repository at this point in the history
  • Loading branch information
markheger committed Nov 12, 2020
1 parent bba34f3 commit 71eb19f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
11 changes: 8 additions & 3 deletions demos/HDFSBinary/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions demos/HDFSBinary/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<info:identity>
<info:name>HDFSBinary</info:name>
<info:description></info:description>
<info:version>1.0.0</info:version>
<info:version>1.0.1</info:version>
<info:requiredProductVersion>4.0.0.0</info:requiredProductVersion>
</info:identity>
<info:dependencies>
<info:toolkit>
<common:name>com.ibm.streamsx.hdfs</common:name>
<common:version>[2.0.0,4.0.0)</common:version>
<common:version>[2.0.0,6.0.0)</common:version>
</info:toolkit>
</info:dependencies>
</info:toolkitInfoModel>
</info:toolkitInfoModel>
10 changes: 7 additions & 3 deletions demos/HDFSParallelFileSink/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,4 +35,4 @@ data:
mkdir data
clean:
$(SPLC) $(SPLC_FLAGS) -C -M $(SPL_MAIN_COMPOSITE) --output-dir ./$(BUILD_OUTPUT_DIR)

-rm -rf output
4 changes: 2 additions & 2 deletions demos/HDFSParallelFileSink/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<info:identity>
<info:name>HDFSParallelSink</info:name>
<info:description>ParallelSink example</info:description>
<info:version>1.0.0</info:version>
<info:version>1.0.1</info:version>
<info:requiredProductVersion>3.2.0</info:requiredProductVersion>
</info:identity>
<info:dependencies>
<info:toolkit>
<common:name>com.ibm.streamsx.hdfs</common:name>
<common:version>[2.0.0,4.0.0)</common:version>
<common:version>[2.0.0,6.0.0)</common:version>
</info:toolkit>
</info:dependencies>
</info:toolkitInfoModel>

0 comments on commit 71eb19f

Please sign in to comment.