python va-buil-all.py

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python va-buil-all.py相关的知识,希望对你有一定的参考价值。

#! /usr/bin/python
#
# Build the entire ISAAC Project
 
import subprocess
import os
import sys
 
projects = ['va-isaac-parent', 
	    'va-ochre', 
	    'va-isaac-metadata', 
	    'va-isaac-mojo', 
	    'va-newtons-cradle', 
	    'va-logic', 
	    'va-query-service', 
	    'va-isaac-gui', 
	    'va-solor-goods', 
	    'va-expression-service', 
	    'va-isaac-gui-pa']
 
defaultArgs = ['-e', 'clean']

def mvn(args):
    return subprocess.check_call(['mvn'] + args)

for project in projects:
        cwd = os.getcwd()
        print("In: " + cwd + " Entering project " + project)
        os.chdir(project)
 
	args = defaultArgs
        if project == 'va-expression-service' or project == 'va-isaac-gui-pa':
                args.extend(['package'])
        else:
                args.extend(['install'])
 
	print ("Build Argument")
	print (args)
	
	#This fails the build, if it results in a non-0 exit status
	mvn(args)  
        
	os.chdir(os.pardir)
        

以上是关于python va-buil-all.py的主要内容,如果未能解决你的问题,请参考以下文章

001--python全栈--基础知识--python安装

Python代写,Python作业代写,代写Python,代做Python

Python开发

Python,python,python

Python 介绍

Python学习之认识python