Project Managment Helper
- python 2.7
- just run git clone https://github.com/tloszabno/ProjectMgmt.git in installation folder
Edit file config.py and adjust variables:
- projects_db_path
- logs_file_name_prefix
Assuming that your workspace with maven projects is in folder /home/user/workspace run:
./project_mgmt.py --autoscan ~/workspace
Folder will be scanned recursivelly for maven projects and servers run scripts All found project will be added to db. Keys(names) will be like folder where found. For each server script tool will prompt to give name, eg:
Provide name for server in path /home/user/workspace/app-ear/app_server.sh>_
Entered name will be used in script actions for servers.
./project_mgmt.py --show
Tool run action defined in config.py file.
So by defualt there is action 'clean-build': ('cb', 'mvn clean install'),
defined
so just run:
./project_mgmt.py -cb app
to run mvn clean install
command
Action can be applied multiple times for every projects combinations. When only action is given without arguments, argumnets from previous action are taken. So comman:
./project_mgmt.py -rh app -cb
Will invoke git reset --hard && git checkout master && git fetch && git reset --hard origin/master
and mvn clean install
command in app folder.
When action has placeholed for argument ({0},{1}..) they can be passed.
./projectmgmt -rh util-parent -cb util-parent @-DskipTests @-pl @util-web-controllers -rh core-2.1 -cb core @-DskipTests @-pl @core-dependencies @-pl @core-war @-pl @core-ear -depd core-server
This command will:
- reset util-parent multimodule to master
- build only util-web-controllers from util-parent
- reset core lib to core-2.1 branch
- build core libs: dependencies, war, ear without test
- deploy artifact on core server (jboss)
thats all while I drink coffee ;)