You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/05/22 05:15:59 UTC

[GitHub] merlimat closed pull request #1824: Example Pulsar Function configs in binary distribution

merlimat closed pull request #1824: Example Pulsar Function configs in binary distribution
URL: https://github.com/apache/incubator-pulsar/pull/1824
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/all/src/assemble/bin.xml b/all/src/assemble/bin.xml
index 3c58be7425..f3cfa9b1d2 100644
--- a/all/src/assemble/bin.xml
+++ b/all/src/assemble/bin.xml
@@ -82,6 +82,16 @@
       <destName>api-examples.jar</destName>
       <outputDirectory>examples</outputDirectory>
     </file>
+    <file>
+      <source>${basedir}/../pulsar-functions/java-examples/src/main/resources/example-function-config.yaml</source>
+      <destName>example-function-config.yaml</destName>
+      <outputDirectory>examples</outputDirectory>
+    </file>
+    <file>
+      <source>${basedir}/../pulsar-functions/java-examples/src/main/resources/example-window-function-config.yaml</source>
+      <destName>example-window-function-config.yaml</destName>
+      <outputDirectory>examples</outputDirectory>
+    </file>
   </files>
   <dependencySets>
     <dependencySet>
diff --git a/conf/example.yml b/pulsar-functions/java-examples/src/main/resources/example-function-config.yaml
similarity index 96%
rename from conf/example.yml
rename to pulsar-functions/java-examples/src/main/resources/example-function-config.yaml
index 58f9bf558c..a66b75fb23 100644
--- a/conf/example.yml
+++ b/pulsar-functions/java-examples/src/main/resources/example-function-config.yaml
@@ -23,7 +23,7 @@ name: "example"
 className: "org.apache.pulsar.functions.api.examples.ExclamationFunction"
 inputs: ["test_src"]
 userConfig:
-  "PublishTopic" : "test_result"
+  "PublishTopic": "test_result"
 
 output: "test_result"
 autoAck: true
diff --git a/conf/window_example.yml b/pulsar-functions/java-examples/src/main/resources/example-window-function-config.yaml
similarity index 97%
rename from conf/window_example.yml
rename to pulsar-functions/java-examples/src/main/resources/example-window-function-config.yaml
index a4470d9333..3dc3279308 100644
--- a/conf/window_example.yml
+++ b/pulsar-functions/java-examples/src/main/resources/example-window-function-config.yaml
@@ -23,7 +23,7 @@ name: "example"
 className: "org.apache.pulsar.functions.api.examples.WindowFunction"
 inputs: ["test_src"]
 userConfig:
-  "PublishTopic" : "test_result"
+  "PublishTopic": "test_result"
 
 output: "test_result"
 autoAck: true


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services