From 8356afdd0e1b8873c4a8e2a672fc3de7d9506d02 Mon Sep 17 00:00:00 2001 From: lm Date: Mon, 27 Jan 2014 16:46:35 +0800 Subject: [PATCH 1/3] [Jenkins] add create-module-project.py --- .../jenkins-scripts/create-module-project.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tools/jenkins-scripts/create-module-project.py diff --git a/tools/jenkins-scripts/create-module-project.py b/tools/jenkins-scripts/create-module-project.py new file mode 100644 index 0000000000..386743104d --- /dev/null +++ b/tools/jenkins-scripts/create-module-project.py @@ -0,0 +1,19 @@ +import os + +language = ['cpp','lua','javascript'] +base_path = 'tools/project-creator/' +create_project = base_path + 'create_project.py' +module_root = base_path + 'moduleTest' + +# create project +for item in language: + ret = os.system('python ' + create_project + + ' -n ' + 'module' + item + + ' -k ' + 'com.test.module.' + item + + ' -l ' + item + + ' -p ' + module_root) + if(ret > 0): + ret = 1 + exit(ret) + +exit(0) From 607a060256ab6f1713eb022cf24ce96571588c8a Mon Sep 17 00:00:00 2001 From: lm Date: Mon, 27 Jan 2014 17:09:14 +0800 Subject: [PATCH 2/3] [Jenkins] rename module to template --- ...reate-module-project.py => create-template-project.py} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename tools/jenkins-scripts/{create-module-project.py => create-template-project.py} (61%) diff --git a/tools/jenkins-scripts/create-module-project.py b/tools/jenkins-scripts/create-template-project.py similarity index 61% rename from tools/jenkins-scripts/create-module-project.py rename to tools/jenkins-scripts/create-template-project.py index 386743104d..0493d3709f 100644 --- a/tools/jenkins-scripts/create-module-project.py +++ b/tools/jenkins-scripts/create-template-project.py @@ -3,15 +3,15 @@ import os language = ['cpp','lua','javascript'] base_path = 'tools/project-creator/' create_project = base_path + 'create_project.py' -module_root = base_path + 'moduleTest' +template_root = base_path + 'templateTest' # create project for item in language: ret = os.system('python ' + create_project - + ' -n ' + 'module' + item - + ' -k ' + 'com.test.module.' + item + + ' -n ' + 'template' + item + + ' -k ' + 'com.test.template.' + item + ' -l ' + item - + ' -p ' + module_root) + + ' -p ' + template_root) if(ret > 0): ret = 1 exit(ret) From f6e4f4b44bb7f1b77bae616f35e43be1c9c77e47 Mon Sep 17 00:00:00 2001 From: lm Date: Mon, 27 Jan 2014 17:22:24 +0800 Subject: [PATCH 3/3] [Jenkins] rename language to languages --- tools/jenkins-scripts/create-template-project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/jenkins-scripts/create-template-project.py b/tools/jenkins-scripts/create-template-project.py index 0493d3709f..e82af72c95 100644 --- a/tools/jenkins-scripts/create-template-project.py +++ b/tools/jenkins-scripts/create-template-project.py @@ -1,12 +1,12 @@ import os -language = ['cpp','lua','javascript'] +languages = ['cpp','lua','javascript'] base_path = 'tools/project-creator/' create_project = base_path + 'create_project.py' template_root = base_path + 'templateTest' # create project -for item in language: +for item in languages: ret = os.system('python ' + create_project + ' -n ' + 'template' + item + ' -k ' + 'com.test.template.' + item