Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/runConfigurations/_template__of_Application2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/runConfigurations/_template__of_JUnit2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# We use Makefile for simplifying mvn command's usage.
# Since InspektorDog (shortened "insdog") is a Java-based component, its binary build and release should be done through mvn, without relying on Makefile.

BASH:=$(shell which bash)
SHELL:=$(shell which bash)
MVN:=source .dependencies/sdkman/bin/sdkman-init.sh && \
sdk use java "${SDK_JDK_NAME}" && \
mvn -B -Dmaven.javadoc.skip=true
Expand Down
3 changes: 2 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function compose_goenv_rc() {
export GOPATH=${_project_godir}/${_go_version}
export GOROOT=${_project_godir}/env/versions/${_go_version}

export PATH=${_project_godir}/${_go_version}/bin:${PATH}
export PATH=${_project_godir}/${_go_version}/bin:"'${PATH}'"
"
}

Expand All @@ -184,6 +184,7 @@ function compose_sdk_rc() {
echo "
export SDK_JDK_NAME=${_jdk_name}
export SDK_JAVADOC_JDK_NAME=${_javadoc_jdk_name}
export SDKMAN_DIR=$(pwd)/.dependencies/sdkman
"
}

Expand Down
12 changes: 11 additions & 1 deletion env.rc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function abort() {
exit 1
}

function init_for_macos() {
function init() {
basedir="$(dirname "${BASH_SOURCE[0]}")"
rcdir="${basedir}/.dependencies/rc"
[[ -d "${rcdir}" ]] || abort "Please run 'bootstrap.sh', first!"
Expand All @@ -22,9 +22,19 @@ function init_for_macos() {
source "${rcdir}/.bash_profile"
}

function init_for_macos() {
init "${@}"
}

function init_for_linux() {
init "${@}"
}

function main() {
if [[ "${OSTYPE}" == "darwin"* ]]; then
init_for_macos "${@}"
elif [[ "${OSTYPE}" == "linux-gnu" ]]; then
init_for_linux "${@}"
else
message "${OSTYPE}: no user terminal initialization step is defined for this os type. Going ahead."
fi
Expand Down