Browse Source

verify Needed to clean some build files when done

Mike Smith 11 years ago
parent
commit
aded210377
2 changed files with 8 additions and 2 deletions
  1. 7 1
      plain/setup.py
  2. 1 1
      plain/src/main/resources/application.conf

+ 7 - 1
plain/setup.py

@@ -20,13 +20,19 @@ def stop(logfile, errfile):
     subprocess.call("taskkill /f /im *plain-benchmark* > NUL", shell=True, stderr=errfile, stdout=logfile)
     subprocess.call("taskkill /f /im *plain-benchmark* > NUL", shell=True, stderr=errfile, stdout=logfile)
     return 0
     return 0
 
 
+  # Takes up so much disk space
+  if os.name == 'nt':
+    subprocess.check_call("del /f /s /q target && del /f /s /q project", shell=True, cwd="plain", stderr=errfile, stdout=logfile)
+  else:
+    subprocess.check_call("rm -rf target && rm -rf project", shell=True, cwd="plain", stderr=errfile, stdout=logfile)
+
   p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
   p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
   out, err = p.communicate()
   out, err = p.communicate()
   for line in out.splitlines():
   for line in out.splitlines():
     if 'plain-benchmark' in line:
     if 'plain-benchmark' in line:
       try:
       try:
         pid = int(line.split(None, 2)[1])
         pid = int(line.split(None, 2)[1])
-        os.kill(pid, 9)
+        os.kill(pid, 15)
       except OSError:
       except OSError:
         pass
         pass
   
   

+ 1 - 1
plain/src/main/resources/application.conf

@@ -9,7 +9,7 @@ akka {
 }
 }
 
 
 plain {
 plain {
-	logging.level = INFO
+	logging.level = ERROR
 	json.encode-output = off
 	json.encode-output = off
 	http.ignore-accept-header = on
 	http.ignore-accept-header = on
 	http.startup-servers = [ benchmark-server ]
 	http.startup-servers = [ benchmark-server ]