|
@@ -4,17 +4,16 @@ import sys
|
|
|
import setup_util
|
|
|
from os.path import expanduser
|
|
|
|
|
|
-home = expanduser("~")
|
|
|
-
|
|
|
def start(args, logfile, errfile):
|
|
|
+
|
|
|
setup_util.replace_text("gemini/Docroot/WEB-INF/GeminiHello.conf", "db.ConnectString = .*:3306", "db.ConnectString = " + args.database_host + ":3306")
|
|
|
- setup_util.replace_text("gemini/Docroot/WEB-INF/resin.xml", "root-directory=\".*\/FrameworkBenchmarks", "root-directory=\"" + home + "/FrameworkBenchmarks")
|
|
|
+ setup_util.replace_text("gemini/Docroot/WEB-INF/resin.xml", "root-directory=\".*\/FrameworkBenchmarks", "root-directory=\"%s" % args.fwroot)
|
|
|
|
|
|
try:
|
|
|
# This was reporting an error because it already exists... not sure.
|
|
|
#subprocess.call("mkdir classes", shell=True, cwd="gemini/Docroot/WEB-INF", stderr=errfile, stdout=logfile)
|
|
|
subprocess.check_call("ant compile", shell=True, cwd="gemini", stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("$RESIN_HOME/bin/resinctl -conf $HOME/FrameworkBenchmarks/gemini/Docroot/WEB-INF/resin.xml start", shell=True, stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.check_call("$RESIN_HOME/bin/resinctl -conf $FWROOT/gemini/Docroot/WEB-INF/resin.xml start", shell=True, stderr=errfile, stdout=logfile)
|
|
|
return 0
|
|
|
except subprocess.CalledProcessError:
|
|
|
return 1
|