Skip to content

Instantly share code, notes, and snippets.

@imesh
Created December 26, 2013 14:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imesh/8134474 to your computer and use it in GitHub Desktop.
Save imesh/8134474 to your computer and use it in GitHub Desktop.
Copy CEP artifacts from source to server deployment folders
#!/bin/bash
# -----------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# -----------------------------------------------------------------
# Copy CEP artifacts from source to server deployment folders
# -----------------------------------------------------------------
set -e
echo "Copying event builders"
rm -vf $cep_path/repository/deployment/server/eventbuilders/*
cp -vf $source_path/cep-artifacts/event-builders/* $cep_path/repository/deployment/server/eventbuilders/
echo "Copying event formatters"
rm -vf $cep_path/repository/deployment/server/eventformatters/*
cp -vf $source_path/cep-artifacts/event-formatters/* $cep_path/repository/deployment/server/eventformatters/
echo "Copying execution plans"
rm -vf $cep_path/repository/deployment/server/executionplans/*
cp -vf $source_path/cep-artifacts/execution-plans/* $cep_path/repository/deployment/server/executionplans/
echo "Copying input event adaptors"
rm -vf $cep_path/repository/deployment/server/inputeventadaptors/*
cp -vf $source_path/cep-artifacts/input-event-adaptors/* $cep_path/repository/deployment/server/inputeventadaptors/
echo "Copying output event adaptors"
rm -vf $cep_path/repository/deployment/server/outputeventadaptors/*
cp -vf $source_path/cep-artifacts/output-event-adaptors/* $cep_path/repository/deployment/server/outputeventadaptors/
echo "Copying stream definitions"
cp -vf $source_path/cep-artifacts/stream-definitions/stream-manager-config.xml $cep_path/repository/conf/stream-manager-config.xml
echo "All complex event processor artifacts copied"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment