Author: ruwan
Date: Wed Dec 15 15:56:57 2010
New Revision: 1049615
URL: http://svn.apache.org/viewvc?rev=1049615&view=rev
Log:
Fixing the migrator sh to print a warning when the config file to be migrated
is not provided and the tool picks it as the default URL.
Modified:
synapse/branches/2.0/modules/distribution/src/main/bin/synapse-config-migrator.sh
Modified:
synapse/branches/2.0/modules/distribution/src/main/bin/synapse-config-migrator.sh
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/modules/distribution/src/main/bin/synapse-config-migrator.sh?rev=1049615&r1=1049614&r2=1049615&view=diff
==============================================================================
---
synapse/branches/2.0/modules/distribution/src/main/bin/synapse-config-migrator.sh
(original)
+++
synapse/branches/2.0/modules/distribution/src/main/bin/synapse-config-migrator.sh
Wed Dec 15 15:56:57 2010
@@ -109,7 +109,20 @@ SYNAPSE_ENDORSED=$SYNAPSE_HOME/lib/endor
MIGRATING_CONFIG=$SYNAPSE_HOME/repository/conf/synapse.xml
if [ ! $1 == '' ]; then
- MIGRATING_CONFIG=$1
+ if [ "$1" = "-h" ]; then
+ echo "Usage: synapse-config-migrator.sh"
+ echo " synapse-config-migrator.sh CONFIGURATION_FILE_NAME_TOBE_MIGRATED"
+ exit 0
+ else
+ MIGRATING_CONFIG=$1
+ fi
+else
+ echo ""
+ echo "[WARNING] Location of the configuration to be migrated has not been
provided."
+ echo "[WARNING] Assuming the file to be migrated as :"
+ echo " $MIGRATING_CONFIG"
+ echo ""
+ echo "Use -h option for help"
fi