Guest User

Untitled

a guest
May 26th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. with changeDir(runDir):
  2. print "mvn clean"
  3. subprocess.call(["mvn clean"], shell=True)
  4. with changeDir(runDir):
  5. print "mvn compile"
  6. subprocess.call(["mvn compile"], shell=True)
  7. print "compile time",datetime.now() - startTime
  8. startTime = datetime.now()
  9. with changeDir(runDir):
  10. print "mvn package"
  11. subprocess.call(["mvn package -DskipTests=true"], shell=True)
  12. with changeDir(runDir):
  13. subprocess.call(["export MAVEN_OPTS="-Xmx10g -Xms10g -XX:MaxPermSize=10g -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit""], shell=True)
  14. print "mvn exec"
  15. subprocess.call(["mvn exec:java -Dexec.mainClass=examples.Example -Dexec.args="pathToFile"+fname+"""], shell=True)
  16.  
  17. [INFO] Scanning for projects...
  18. [INFO] Inspecting build with total of 1 modules...
  19. [INFO] Installing Nexus Staging features:
  20. ....
  21. ..
  22.  
  23. mvn clean
  24. mvn compile
  25. compile time 0:00:08.027680
  26. mvn package
  27. mvn exec
  28.  
  29. mvn clean
  30. [INFO] Scanning for projects...
  31. [INFO] Inspecting build with total of 1 modules...
  32. [INFO] Installing Nexus Staging features:
  33. ....
  34. ..
  35. mvn compile
  36. [INFO] Scanning for projects...
  37. [INFO] Inspecting build with total of 1 modules...
  38. [INFO] Installing Nexus Staging features:
Add Comment
Please, Sign In to add comment