Skip to content

Commit

Permalink
Create dependencies when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Oct 2, 2024
1 parent 4df17da commit e1dc973
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions checker/bin/wpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,19 @@ stdout is in $dljc_stdout"
if [ "${DLJC}" = "" ]; then
# The user did not set the DLJC environment variable.
DLJC="${SCRIPTDIR}/.do-like-javac/dljc"
if [ ! -f "${DLJC}" ]; then
(cd "$SCRIPTDIR"/../.. && ./gradlew getDoLikeJavac)
fi
else
# The user did set the DLJC environment variable.
if [ ! -f "${DLJC}" ]; then
echo "Failure: DLJC is set to ${DLJC} which is not a file or does not exist."
exit 1
fi
fi
if [ ! -f "$SCRIPTDIR/../dist/checker.jar" ] ; then
(cd "$SCRIPTDIR"/../.. && ./gradlew assembleForJavac)
fi

#### Main script

Expand Down

0 comments on commit e1dc973

Please sign in to comment.