Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.34 KB

readme.md

File metadata and controls

46 lines (29 loc) · 1.34 KB

INTO-CPS Tracability for Overture

How to

To run a full repo sync use the following command:

java -jar tracability-driver-*-jar-with-dependencies.jar -host http://localhost:8083 -s  --dry-run -vdm -exclude SysML -repo /path/to/repo

or to sync a single commit only:

java -jar tracability-driver-*-jar-with-dependencies.jar -host http://localhost:8083 -c <commit-hash> --dry-run -vdm -exclude SysML -repo /path/to/repo

The --dry-run command makes the tool only print the data that would be send. Drop this so send the messages. If a custom host is used then specify -host <url> to override the default host URL.

Git hook

The tool can be used in combination with git hooks. If the daemon is running locally such a hook could look like:

Hook file: .git/hooks/post-commit

#!/bin/sh
java -jar tracability-driver-*-jar-with-dependencies.jar -c HEAD -vdm -exclude SysML -repo $GIT_DIR../

assuming that the *.jar file is also in hooks.

Make sure it is executable:

chmod +x .git/hooks/post-commit

This will trigger a sync of the new commit to the daemon.

Release the tool

mvn -Dmaven.repo.local=repository release:clean
mvn -Dmaven.repo.local=repository release:prepare -DreleaseVersion=${RELEASE_VER} -DdevelopmentVersion=${NEW_DEV_VER}
mvn -Dmaven.repo.local=repository release:perform