From 9df6c7f9f156c32feb0569fb3c8b6316b0b13b73 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Mon, 1 Nov 2021 10:30:15 +0000 Subject: [PATCH] setup project workspace --- .gitpod.yml | 9 +++++ coauthors.sh | 41 +++++++++++++++++++++++ pom.xml | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++ run | 2 ++ 4 files changed, 147 insertions(+) create mode 100644 .gitpod.yml create mode 100755 coauthors.sh create mode 100644 pom.xml create mode 100755 run diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..7309f7e --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +--- +# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ +tasks: + - init: sh coauthors.sh +vscode: + extensions: + - redhat.java + - mhutchie.git-graph + - vscjava.vscode-maven \ No newline at end of file diff --git a/coauthors.sh b/coauthors.sh new file mode 100755 index 0000000..aa69875 --- /dev/null +++ b/coauthors.sh @@ -0,0 +1,41 @@ +npm i -g git-mob +cat <<-EOF > ~/.git-coauthors +{ + "coauthors": { + "sig": { + "name": "sigonasr2", + "email": "sigonasr2@gmail.com" + } + } +} +EOF +git mob sig +cat <<-EOF > .git/hooks/prepare-commit-msg +#!/usr/bin/env node +let exec = require('child_process').exec, + fs = require('fs'); +const commitMessage = process.argv[2]; +// expect .git/COMMIT_EDITMSG +if(/COMMIT_EDITMSG/g.test(commitMessage)){ + let contents = ""; + exec("git mob-print", + function (err, stdout) { + if(err) { + process.exit(0); + } + // opens .git/COMMIT_EDITMSG + contents = fs.readFileSync(commitMessage); + if(contents.indexOf(stdout.trim()) !== -1) { + process.exit(0); + } + const commentPos = contents.indexOf('# '); + const gitMessage = contents.slice(0, commentPos); + const gitComments = contents.slice(commentPos) + fs.writeFileSync(commitMessage, gitMessage + stdout + gitComments); + process.exit(0); + }); +} +EOF +chmod +x .git/hooks/prepare-commit-msg +cd LLSIG +echo "Environment is setup!" \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..467cfda --- /dev/null +++ b/pom.xml @@ -0,0 +1,95 @@ + + + + 4.0.0 + + SigRenderer + SigRenderer + 0 + + SigRenderer + + + UTF-8 + 1.8 + 1.8 + + + + + + javax.vecmath + vecmath + 1.5.2 + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + maven-assembly-plugin + + + + main.java.LLSIG.LLSIG + + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + + + + + \ No newline at end of file diff --git a/run b/run new file mode 100755 index 0000000..362fb8e --- /dev/null +++ b/run @@ -0,0 +1,2 @@ +mvn compile assembly:single +java -jar target/LLSIG-1.0-SNAPSHOT-jar-with-dependencies.jar \ No newline at end of file