Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vaskaloidis
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaskaloidis/b27fe4a3537c1c3e116c to your computer and use it in GitHub Desktop.
Save vaskaloidis/b27fe4a3537c1c3e116c to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment