nutzboot/mvn_settings.py
2017-11-03 17:47:52 +08:00

11 lines
368 B
Python

#!/usr/bin/env python
import sys
import os
import os.path
import xml.dom.minidom
import subprocess
if "1.6.0" in subprocess.check_output("java -Xmx32m -version", shell=1, stderr=subprocess.STDOUT) :
subprocess.check_call("mvn -Dmaven.test.skip=true clean source:jar deploy --settings mvn_settings.xml", shell=1, stderr=subprocess.STDOUT)
else :
print "not java 6"