#!/bin/sh

echo
echo --- Create DataBase----------------------------------------------


  CONFIG_FILE=$1

workingDir=..
PROACTIVE=$workingDir/../..
CLASSPATH=.
. $workingDir/env.sh

CLASSPATH=$workingDir/../../scheduler-plugins-src/org.objectweb.proactive.scheduler.plugin/bin/:$CLASSPATH

echo $JAVACMD

if [ -e "$1" ]; then
	echo "Copying $CONFIG_FILE to $PROACTIVE/classes/Extensions/org/objectweb/proactive/extensions/scheduler/util/db.cfg"
	cp $CONFIG_FILE $PROACTIVE/classes/Extensions/org/objectweb/proactive/extensions/scheduler/util/db.cfg
	$JAVACMD org.objectweb.proactive.extensions.scheduler.util.CreateDataBase	
else
	echo "You must give a config file to create database ! Use the example db.cfg."
fi
echo

#!/bin/sh

echo
echo --- Create DataBase----------------------------------------------


  CONFIG_FILE=$1

workingDir=..
PROACTIVE=$workingDir/../..
CLASSPATH=.
. $workingDir/env.sh

CLASSPATH=$workingDir/../../scheduler-plugins-src/org.objectweb.proactive.scheduler.plugin/bin/:$CLASSPATH

echo $JAVACMD

if [ -e "$1" ]; then
	echo "Copying $CONFIG_FILE to $PROACTIVE/classes/Extra/org.objectweb.proactive.extensions.scheduler/util/db.cfg"
	cp $CONFIG_FILE $PROACTIVE/classes/Extra/org.objectweb.proactive.extensions.scheduler/util/db.cfg
	$JAVACMD org.objectweb.proactive.extensions.scheduler.util.CreateDataBase	
else
	echo "You must give a config file to create database ! Use the example db.cfg."
fi
echo

--- 
+++ 
@@ -16,8 +16,8 @@
 echo $JAVACMD
 
 if [ -e "$1" ]; then
-	echo "Copying $CONFIG_FILE to $PROACTIVE/classes/Extra/org.objectweb.proactive.extensions.scheduler/util/db.cfg"
-	cp $CONFIG_FILE $PROACTIVE/classes/Extra/org.objectweb.proactive.extensions.scheduler/util/db.cfg
+	echo "Copying $CONFIG_FILE to $PROACTIVE/classes/Extensions/org/objectweb/proactive/extensions/scheduler/util/db.cfg"
+	cp $CONFIG_FILE $PROACTIVE/classes/Extensions/org/objectweb/proactive/extensions/scheduler/util/db.cfg
 	$JAVACMD org.objectweb.proactive.extensions.scheduler.util.CreateDataBase	
 else
 	echo "You must give a config file to create database ! Use the example db.cfg."
Fix error in Extra->Extensions Scheduler refactoring.

git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@7456 28e8926c-6b08-0410-baaa-805c5e19b8d6
