|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
import subprocess
|
|
|
import sys
|
|
|
import setup_util
|
|
@@ -10,8 +9,7 @@ def start(args, logfile, errfile):
|
|
|
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.call("mkdir -p 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 $FWROOT/gemini/Docroot/WEB-INF/resin.xml start", shell=True, stderr=errfile, stdout=logfile)
|
|
|
return 0
|
|
@@ -22,4 +20,4 @@ def stop(logfile, errfile):
|
|
|
subprocess.check_call("$RESIN_HOME/bin/resinctl shutdown", shell=True, stderr=errfile, stdout=logfile)
|
|
|
return 0
|
|
|
except subprocess.CalledProcessError:
|
|
|
- return 1
|
|
|
+ return 1
|